Interaction Syntax in the Dashboard
You must specify the correct syntax when creating an interaction in a dashboard designer dashboard. The syntax is different for each dashboard designer.
To specify a selection or results interaction in the dashboard designer, use this syntax.
For example,
When specifying the query, you specify the ID, not the label.
To create an interaction:
- Determine the source step and parameters.
- Start with the basics,
"{{}}"
. Interactions are case sensitive. - An interaction with a trigger is
"{{.selection}}"
and without a trigger is"{{.result}}"
. - Define which step to make the interaction by using the API name, not the label.
"{{Step_1.selection}}"
- Identify where the information for the interaction comes from: a cell, column, or row. Cell and column are more common than row.
"{{column(Step_1.selection)}}"
- Define the data serialization function by the expected result of the data, one value or an array of values. In most cases, the
column
function works withasObject()
data serialization and thecell
function works withasString()
."{{column(Step_1.selection).asObject()}}"
- To complete the data selection, define the information that the interaction must take then add the field. For
asObject()
, wrap the field in[]
and quotes. WithasString()
, the brackets aren't needed:"{{column(Step_1.selection, ["value"]).asObject()}}"
. Forcell
, define which row to take the cell from:"{{cell(Step_1.selection, 0, "value").asString()}}"
.