A collection is a type of user variable that contains a set of items. A collection is always one of the following types:

  • Simple collection: Contains a list of values. Each value is of the same data type (number, date, etc.)
  • Object collection: Contains a list of items (objects) that are each made up of a set of fields. For example, a Customer object would be made up of the fields First Name, Last Name, Account ID, Phone Number, and so on.

Note: For more details about collections and their configuration, refer to Defining Collections.

The Collection Display Interaction element lets you display the items in a collection to customers. Collections of objects are always displayed in table rows. Simple collections can be displayed in any of the following formats:

  • Bulleted list
  • Numbered list
  • Paragraphs
  • Table rows

To display a simple collection:

  1. From the left side of the Page Editor, select the Collection Display element, and drag the element to the Page map.
    On the right side of the Page Editor, the Element tab opens, with the Collection Display editor displayed.

  2. Click in the Collection field, and select the required simple collection from the Variables list.
    Alternatively, click the Add icon, and define a new collection type variable.

  3. Click in the Display Style field and select the desired display format.
    The default display option is Bulleted List.
  4. Select the Page tab, and define settings for the page. For details, refer to Creating a New Page.
  5. To save your changes, at the lower right corner of the Page Editor, click Create Page (or Update Page).
    The Page Editor closes, and the Interaction Map is displayed.

To display an object collection:

  1. From the left side of the Page Editor, select the Collection Display element, and drag the element to the Page map.
    On the right side of the Page Editor, the Element tab opens, with the Collection Display editor displayed.

  2. Click in the Collection field, and select the required object collection from the Variables list.
    Alternatively, click the Add icon, and define a new collection type variable.



    The fields of the object are displayed in table row format.


  3. Specify the fields to be shown:
    In the Show column, clear the checkboxes of the fields that should be hidden. For example:

  4. Designate the order in which the selected fields will be displayed:
    In the fields list, drag and drop the rows of the selected fields into the desired order.

  5. Design the display of the field names and values: 
    • At the right side of the row of the field you want to edit, click the Edit icon.
      The editing popup opens.



    • In the Header field, enter a friendly name for the field. This name will be displayed on the Interaction page.
    • If desired, set the alignment of the field's value by selecting the Left (default), Center or Right radio button.

  6. To save your changes, at the lower right corner of the Page Editor, click Update Page (or Create Page).
    The Page Editor closes, and the Interaction Map is displayed.

Revision:

Comments