1.3.11.18 Make Attribute Arrays

The Make Attribute Arrays processor constructs label and value arrays for one or more string inputs and creates a single pair of label and value arrays. The content of the label array are created from the actual names of the input attributes.

Configuration Description

Inputs

One or more input string.

Options

Specify the following options:

  • Sort Arrays: Sort output arrays retaining shared index between value and label in each case:
    • Label Asc = by Label, ascending.

    • Label Desc = by Label, descending.

    • Value Asc = by Value, ascending.

    • Value Desc = by Value, descending.

    • None = arrays in order the attributes are provided.

    Default is None.

Outputs

Makes single pair of label and value arrays.

Data Attributes

The following data attributes are output:

  • LabelArray:Array containing attribute labels.

  • ValueArray: Array containing attribute values in the corresponding index of their label. It creates a blank string at that position if the attribute input is null or blank..

Flags

None.

Example
Attribute Name Value

Price

19.99

ID

NWID2311

Discount

null

Quantity

753

Total

15052.47l

CHF

14, 751.42 CHF

Extra Note

” ”

Description

<a description text (of any length)>

Sales Status

3–Quoted

Output is:

Output Name Value

LabelArray

{”Price”, ”ID”, ”Discount”, ”Quantity”, ”Total”, ”CHF”, ”Extra Notes”, ”Description”, ”Sale Status”}

ValueArray

{”19.99”, ”NWID2311”, ”null”, ”753”, ”15052.47”, ”14,751.42 CHF”, " <description text> ”,”3 - Quoted”}