lineitemarray(
FIELD
,
SEPARATOR
)

The lineitemarray( function converts the data in a set of line item fields into a text array (see Text Arrays).


Parameters

This function has two parameters:

field – is the root of the line item field name that contains the data. You should put the line item field name in quotes. Only include the root, not the number. You can optionally put the Ω symbol (option-Z) where the numeric suffix goes (this was required in earlier versions of Panorama, but not required in Panorama X).

separator – is the separator character for the generated array.


Description

This function converts the data in a set of line item fields into a text array (see Text Arrays).

This example will copy the data in the Price line item fields (Price1, Price2, Price3, etc.) into a text item named PriceArray:

PriceArray=lineitemarray("Price",";")

In this case the prices will be converted to text before they are added to the array. This will produce an array something like this:

43.25;167.12;22.95;4.25

The lineitemarray( function is also useful for searching a database. This procedure will find all line items that contain the word red, no matter what description line item the item is in (it could be Description1, Description2, Description99, etc.):

select lineitemarray("Description",";") contains "red"

However, the word red will be ignored if it appears in any other fields.


See Also


History

VersionStatusNotes
10.0UpdatedCarried over from Panorama 6.0, but now the Ω character is optional.