Click or drag to resize
OrgUnitConstructor

[This is preliminary documentation and is subject to change.]

Construct and return an OrgUnit object, read from database, Identified by key value(s).

Syntax (1)
OrgUnitConstructor(key)
Parameters (1)

Name

Type

Description

key

String

The full key identifying an OrgUnit object in the form <type>:<code>.

Syntax (2)
OrgUnitConstructor(type, code)
Parameters (2)

Name

Type

Description

type

String

The Type-value (part 1 of the key)

code

String

The Code-value (part 2 of the key)

Returns

The OrgUnit object identified by the passed key value(s) - null if not found

Examples

Expression

Result

OrgUnitConstructor("reg:81")

The OrgUnit object having Type="reg" and Code="81" - null if it does not exist.

OrgUnitConstructor("reg", "81")

The OrgUnit object having Type="reg" and Code="81" - null if it does not exist.

OrgUnitConstructor("reg:81").Type

"reg"

OrgUnitConstructor("reg:81").Code

"81"