Dictionary creation

Syntax

	$struct-type.newStruct($value1, $value2, ..., $valueN)

Description

Creates a dictionary from the given Dictionary type. As many values ​​must be specified as keys were defined in the Dictionary type.

Parameters

Name Type Description Mandatory Default
struct-type Business object The dictionary type from which a dictionary is to be created. yes
value Number/string/boolean/business object/set A value to be assigned to a key from the Dictionary type. Which key depends on the position of the value and the key. yes

Return value

Type: Business object

A dictionary with the keys from the Dictionary type and the values value.

Examples

Multilingual dictionary

	{
  eng = structType("Hello", "Goodbye");
  fr = $eng.newStruct("Bonjour", "Au revoir"); 
  ger = $eng.newStruct("Hallo", "Tschüss");
  $ger["Hello"];
}

Output: Hallo

Creates dictionaries for the different translations.