Selection & Cell Bindings
Selection & Cell Bindings
Selection bindings
"filter": "{{cell(selectedChart.selection, 0, \"Region\").asString}}"
This pulls the value of the Region column from the first selected row (0) of selectedChart, and substitutes it as a string into another widget's query.
Binding into a SAQL step
{
"query": {
"filter": "{{cell(regionChart.selection, 0, \"Region\").asString}}"
}
}
When regionChart has no selection, the binding evaluates to nothing and the dependent query falls back to unfiltered — always design for the "nothing selected yet" case.
Multiple selections
asStringArray (instead of asString) pulls every selected row, not just the first — needed when a chart allows multi-select and a dependent query should filter on all of them (in [...]).
What you'll learn next
Next: binding to filter widgets, date range widgets, and text inputs instead of chart selections.
What Are Bindings?
Bindings connect widgets so a selection or value in one place updates a query or another widget at runtime.
Widget & URL Bindings
Bind to filter widgets and number-entry widgets, and pass values into a dashboard from its URL.