LIST
Creates a list based on a value. Is the inverse of the UNPACK function.
Syntax LIST ( attribute/collection ) |
Inputs
Return type
Examples Expression | Result | Type |
---|
LIST ( "Blueriq" ) | [ "Blueriq" ] | String (multivalued) | LIST ( 5 ) | [ 5 ] | Integer (multivalued) | LIST ( ? ) | [] | Any (multivalued) |
Suppose the following data model.
Person.name | Person.SequenceNumber |
---|
“Bob” | 654 | “Jane” | 523 | “Mary” | 667 | “Rick” | 500 | “Ron” | 490 | “Jenny” | ? |
LIST ( COLLECT Person.name FROM ALL Person ) = [ "Bob" , "Jane" , "Mary" , "Rick" , "Ron" , "Jenny" ] - In this example the
LIST function adds no value, as the result of the COLLECT is already a list.
LIST ( COLLECT Person.SequenceNumber FROM ALL Person ) = [] - As Jenny has an unknown sequence number, the result of the
COLLECT expression is ? . The LIST function creates an empty list in case the parameter has ? value.

|