Variable operations

In the Variables resource panel, you can, for example:

Open the Variables resource panel

Click Variables, on the Mix.dialog toolbar, to open the Variables resource panel.

Variables resource panel example showing predefined variables and one custom Boolean variable

(Click Variables again to close the panel.)

Create a simple variable

  1. Click the Add icon , next to Simple.
  2. Enter a unique name for the variable (see Naming guidelines).
    The new variable appears in the Simple category.
  3. On the right-hand side of the panel, choose the desired data type from the Type list.
  4. If you chose List, choose a type for the list elements from the List Type list.
  5. If desired, add a value to be used when previewing your design.
    (Not available for list and dynamic entity data variables.)
  6. Mark the variable with a reporting property, if required.
  7. Add notes (maximum 255 characters), if desired.

Set the type of an undefined variable

  1. In the left-hand pane of the Variables resource panel, expand the Undefined category, if needed, and click the variable whose type you want to set.
  2. On the right-hand side of the panel, choose the appropriate category: Simple, or Object.
  3. If you chose Simple:
    1. Choose the desired type from the second list that appears.
    2. Mark the variable with a reporting property, if required.
  4. If you chose Object, now choose the appropriate schema from the second list.

Find a variable

Use the search field to narrow down the variables and schemas displayed in the Variables resource panel.

The current section of the Variables resource panel updates as you type, showing only the variables, schemas, and fields that match the search string or that have fields that match the string. Badges indicate the number of matches in each section.

To stop filtering, click the Clear search icon .

Rename a variable

  1. In the left-hand pane of the Variables resource panel, expand the appropriate category, if needed, and click the variable you want to rename.
    Tip: Use the search field to narrow down the list if needed.
  2. In the right-hand pane of the panel, click the variable name.
    The name becomes editable.
  3. Modify the name as desired (see Naming guidelines).

Delete a variable

You can delete a variable only if there are no references to it in your design. To remove stray variable references from your design, review the variable’s usage information.

  1. In the left-hand pane of the Variables resource panel, expand the appropriate category, if needed, and click the variable you want to delete.
    Tip: Use the search field to narrow down the list if needed.
  2. In the upper-right corner of the panel, click the Delete icon .
    A message appears prompting you to confirm your intention.
  3. Click Confirm.

View usage information for a variable

  1. In the left-hand pane of the Variables resource panel, expand the appropriate category, if needed, and click the variable of interest.
    Tip: Use the search field to narrow down the list if needed.
    The number of references to this variable in the current project appears next to the variable’s name in the right-hand pane.
  2. Click the usage count.
    A list of all nodes, global and channel-specific recovery and confirmation messages, as well as any message resources that include references to this variable appears.
  3. Click a reference in the list to navigate to the node or Project Settings panel or Messages resource panel section that has the message reference.

Mark a variable with a reporting property

  1. In the left-hand pane of the Variables resource panel, expand the Simple category, if needed, and click the variable you want to mark with a reporting property.
    Tip: Use the search field to narrow down the list if needed.
  2. Expand Reporting property, and choose the desired property: either Attribute, Dimension, Metric, or Sensitive.
    If a variable no longer has any reporting purposes, choose None.

Create a schema

  1. Click the Add icon next to Schema.
  2. Enter a name for the schema (see Naming guidelines).
    The new schema appears in the Schema category.
  3. Use the fields under Add to Schema, in the area on the right-hand side of the panel, to add the desired fields (see Naming guidelines), and set their type.
  4. If some fields will be holding sensitive information, mark them as sensitive.
  5. Add notes (maximum 255 characters), if desired.

Rename a schema

  1. In the left-hand pane of the Variables resource panel, expand the Schema category, if needed, and click the schema you want to rename.
    Tip: Use the search field to narrow down the list if needed.
  2. In the right-hand pane of the panel, click the schema name.
    The name becomes editable.
  3. Modify the name as desired (see Naming guidelines).

Delete a schema

  1. In the left-hand pane of the Variables resource panel, expand the Schema category, if needed, and click the schema you want to delete.
    Tip: Use the search field to narrow down the list if needed.
  2. In the upper-right corner of the panel, click the Delete icon .
    A message appears prompting you to confirm your intention.
  3. Click Confirm.

Rename a field in a schema

  1. In the left-hand pane of the Variables resource panel, click the desired schema.
    Tip: Use the search field to narrow down the list if needed.
  2. In the right-hand pane of the panel, click the field you want to rename.
    The name becomes editable.
  3. Modify the name as desired (see Naming guidelines).

Change the type of a field in a schema

  1. In the left-hand pane of the Variables resource panel, expand the appropriate schema, and click the field whose type you want to change.
    Tip: Use the search field to narrow down the list if needed.
  2. Use the fields under Type, in the area on the right-hand side of the panel, to set the desired type.
  3. (Optional) Add a display value, and notes (maximum 255 characters), if desired.

Change the order of the fields in a schema

Use the handle icon to drag a field up or down, until all fields are in the desired sequence.

Delete a field in a schema

  1. In the left-hand pane of the Variables resource panel, click the appropriate schema.
    Tip: Use the search field to narrow down the list if needed.
  2. In the right-hand pane of the panel, click the Delete icon , next to the name of the field you want to delete.

Mark a field as sensitive in a schema

For complex variables, fields marked as sensitive in the base schema are masked in application logs.

  1. In the left-hand pane of the Variables resource panel, expand the appropriate schema, and click the field you want to mark as sensitive.
    Tip: Use the search field to narrow down the list if needed.
  2. Click the Sensitive check box to select it.

Create a complex variable

  1. Click the Add icon next to Data Objects.
  2. Enter a name for the complex variable (see Naming guidelines).
    The new complex variable appears in the Data Objects category.
  3. On the right-hand side of the panel, choose the desired schema from the second list, under Type.
  4. In the case of a variable based on the DynamicMessageReference schema, if it will be holding sensitive information (for example, prescription drug names), mark this variable as sensitive.
  5. Add notes (maximum 255 characters), if desired.

Mark a complex variable as sensitive

This section applies to complex variables based on the DynamicMessageReference schema only.

  1. In the left-hand pane of the Variables resource panel, expand the Data Objects category, and click the variable you want to mark as sensitive.
    Tip: Use the search field to narrow down the list if needed.
  2. Click the Sensitive check box to select it.