Table of Contents

, ,

LIST

Description

Prints out a list of business objects as a table where each row represents a single list member. A list may be specified as an attribute or as a query string. Only specified attributes of each list member are printed out. This function is useful when it is necessary to print out a relatively small list inside a document or inside an e-mail (usually used inside a tag). Returns a table as a text string.

Syntax

LIST (list[, order], delimiter, attribute[, attribute…])

Cannot be used in the condition of a FIND action.

Parameters

  1. Identifier of the list or a string identifying the query (either Rule Language string or the name of the existing query).
  2. Delimiter to be used between attributes of a member.
  3. Attribute names to be printed out. The name of the attribute to print out may be optionally followed by the print format (the name of the attribute and the format must be separated by comma). If format is not specified the default attribute format will be used.

Returns

Text: the chosen attributes of each list member, one member per line, with the delimiter between values; used inside tags in documents or e-mails

Example

<<LIST(Client.Children, ' ', 'FirstName', 'LastName', 'Age,#')>> 
<<LIST('FIND Child WHERE Child IN Client.Children', ' ', 'FirstName','LastName','Age')>> 

LIST_LINE, LIST_TABLE, LIST_SIZE, LIST_TO_JSON