Row Merge Variables

Row merge variables are available whenever a particular model row is in context.

Two kinds of variables are available in Row merges:

  • Fields on the row: All fields present on the row can be accessed using the field’s name.

    For example, a row has first_name and last_name fields, which have the values of Sally and Hernandez respectively. Writing {{first_name}} {{last_name}} would display Sally Hernandez at runtime.

  • Special row variables: Metadata-level information about the row, accessed via variables nested under Record.

Index of all row merge variables:

Row Merge Variables

  • Record: for accessing meta-information about the row, which corresponds to information available in the row’s associated Model Record.

Record

Each row in a Skuid model—regardless of data source—has its Skuid-centric metadata stored in the {{Record}} merge variable. The {{Record}} variables contains the following variables:

  • Record.id: The id for the row.
  • Record.index: The (integer) position/order of the row within the array of rows in the model.
  • Record.isFirst: True if the row is first within the array of rows in the model, otherwise false.
  • Record.isLast: True if the row is last within the array of rows in the model, otherwise false.
  • Record.isNew: True if the row has not been saved to the data source yet.
  • Record.isClone: True if the row has not been saved to the data source yet, and is a clone of an existing saved row.
  • Record.isMarkedForDeletion: True if the row is marked for deletion, such that on the next save it will be deleted.