Skip to main content
Skip table of contents

buildMap() Operation

Syntax

anArray.buildMap("aKeyName")

Semantics

Build a map from anArray. The operation returns a value of type Map.

Substitutables

anArray

Can be any variable or object attribute having the type Array and having array elements of complex type.

aKeyName

Name of the key attribute of the complex type in double quotes.

Examples

NONE
create hashMap;
set hashMap = recordArray.buildMap("name");

recordArray is an array containing elements of type Address:

class_Address.png

buildMap() is a convenient method, if you need a map indexing an array.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.