Passing the selected row to another action

  1. In view MY GROUP (filtered to show a single, user specific row), there is an inline table of RELATED SECTIONS.
  2. In the same MY GROUP view is an inline table of RELATED MEMBERS, filtered to show only rows for a selected SECTION (this selection is currently stored in a separate USER table).

My objective is to remove the need for the user to manually update the selected SECTION on the USER table and instead have the field updated when the user clicks a row in the RELATED SECTIONS inline table,

I believe I need two actions.
ACTION 1 - "Data: execute an action on a set of rows" attached to rows of the inline RELATED SECTIONS table.  When a row is selected, this action fires. and calls ACTION 2.
ACTION 2 - "Data: set the values of some columns in this row" on the USER table, to set the selectedSection column to the value of sectionID in the row clicked on the inline table. 

How can I "pass" the selected row (sectionID) from the inline table into the column being updated in the USER table?

I can't see how to reference the clicked row (and key value) in the second action.  Help?!

Action 1
gcor71_0-1724536895919.png

 

Action 2 

gcor71_1-1724537154665.png

 

Solved Solved
0 3 921
1 ACCEPTED SOLUTION

3 REPLIES 3

It took a lot of working through but, it worked!  Thank you.

For future creators with similar needs, here's how I used INPUT to capture the selected row from an inline table.
1. Create action to set the value of a column using the "INPUT" passed to it.  In this case, the sectionID (key) value.
2. Trigger action 1 when the required row is clicked/selected on the inline table.  Pass the sectionID (key) to action 1. 

USER VIEW.png

Don't forget to attach the 2nd action to the inline view or nothing will get triggered:

gcor71_0-1724594113230.png

 

The "potential members" view (is driven by a table slice which uses selectedSection as an input.  Therefore, the view will dynamically update when the user clicks a section row in the inline table.

This is mimicking an interactive dashboard but within a single view definition.

Enjoy.

 

 

 

Well documented @gcor71  and a good thought to document it for any future readers of the post thread.