Parameter-based navigation using the selected card from a GridView

Iā€™m setting up an navigation action on the card(s) of a GridView so that when I click a card, Iā€™m taken to a different page that will load data from my datasource given the ID of the card passed as a query parameter. However, Iā€™m struggling to pass data from the selected card to the action.

From the docs, it seems that the Table component has the selectedRow property. I was expecting something similar for the GridView but an equivalent entity seems absent. Iā€™ve seen both children and value and either seem to do what I need.

How can I achieve this with a GridView?

Hi @blazix,

Action Arguments in your GridView card-related action will do the trick!
You can use item variable to refer current card data:

Action Arguments are available as {{data}} or {{params}} in Actions.

Thanks @spherebread, I think Iā€™ve got the hang of it. Iā€™d missed the step of specifying the Action Arguments in the trigger setup.

If create an input on a card in one of these ā€œrepeating instanceā€ controls (looking at a ListView atm), how do I access the input value on that cardā€™s instance of the input control in a trigger? {{item}} only lets you access the data object thatā€™s bound to the card I believe?

Oh, sorry, found it! You still use the name of the control as itā€™s specified in the first instance of the card - the instance within the card that receives the trigger gets used!