Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 18 Next »

  • Models are used to display content in the layout

  • Typically used for record creation or editing, as well as various types of messaging

  • A Model needs to be added when you perform any action in an event

  • There are 2 types of Model

    • Single Record Model:

      • The single record model is generally used when only a single record needs to be displayed at a time

    • MultiRecord Model:

      • The multi-record model is used when multiple records need to be displayed at a time

Model Creation

  • Create a MultiRecord model

    • Go to the Model tab

    • Click on the + icon

    • Enter information, click Save

  • Click Details tab

  1. Label: Label is used to identify the model at the UI

  2. Name: Name is the unique identifier of the model

  3. Type: Select the type from the dropdown menu i.e. Record, API, Aggregate, and Item

  4. Record Count: Select the record count from the dropdown menu i.e Singlerecord and Multirecord

  5. Is Shared?:

  6. Object Def: Select the obj def from the dropdown that you want to bind the model to

  7. Offset:

  8. Limit: Set the limit for how many records you want to display at a time

  9. Order By:

    1. Click on the + icon

    2. Fill in the information, click Save

  1. Field name: Select the field name from the dropdown menu

  2. Sort As: Select the option Ascending or Descending from the dropdown menu

  • Click Fields tab

    • Select the field. These fields are added to the selected fields

    • These selected fields are added to the model

  • Click the UI Fields tab

    • Click New button

      • Enter Label & Name, click on the Config icon

      • Enter information, click Save

  1. Field Source: Select the field source from the dropdown menu

    1. Field:

    2. Variable:

    3. Model:

    4. Static:

    5. Cookie:

    6. LocalStorage:

    7. QueryParam:

    8. User:

  2. Merge Field Expression:

  3. Message Body:

  • Click the Criteria tab

  • Click on the Filter + icon

    • Filter:

      • A model filter contains a list of Model Conditions

      • You can filter your models by using the Filter

  1. Field Name: Select the field name from the dropdown menu for which you want to add criteria

  2. Operator: Select the field name from the dropdown menu.

    1. Equals: Used to compare two values or expressions

    2. NotEquals: Checks whether two values are not equal

    3. start with: Checks any string that starts with

    4. Contains: Indicates a search for any of the specified words within a particular attribute

    5. EndsWith: String ends with the specified value

    6. In: Allows you to easily test if an expression matches any value in a list of values

  3. Source Type: Select the source type from the dropdown menu, e.g. Field, Variable, Model, Static, Cookie, LocalStorage, QueryParam, User

  4. Variables: Select the variable from the dropdown menu, e.g. Record Id

  • Click Save

  • Return to the layout page

  • A Model is created

Model Addition

  • Select a Multi Record Model

    • In the basic config, Click + icon

    • Add the Model and click Save

  • For a Single record Model, the same procedure is used.

Context Models

  • A Context model is created by using a multi-record model

  • It acts as a single record model

Models Creation

  • Click on the + icon

  • Create Models and click Save

Criteria

  • Criteria determine the conditions under which the criteria apply

  • When the given criteria in the form are completed, then the criteria are fired

  • Using source types, you can add criteria in the form

Source Type

  • On which destination do you won't compare your criteria

  • There are multiple source types available

    • Static:

    • Input:

    • Variable:

      • Click + icon

      • Create Variable, click Save

        • Label:

        • Name:

        • Field Type:

        • Required:

        • Is Array:

        • Default Value:

        • Variable Scope:

    • Cookie:

    • Context:

  • Create Criteria

    • Click on the + icon

    • Add Criteria, click Save

  • No labels