Clear row selection from another tab on button click

Hi Team,

I have a tabbed container with 2 tabs. A table exists in each of these tabs.
On clicking a row in table1 of tab1, I have the code to automatically filter the contents of table2 in tab2 based on selectedRow.

On tab 2, I now want a button to reset filters (remove filter selections from tab 1) and show all rows.

I tried with
adding a script on button click - table1.selectRow(null);
and updating the source query where clause -
([id] = {{ table1.selectedRow.id}} OR {{ !table1.selectedRow ? 1 : 0 }} = 1)
but no luck.

Could you help me on this?

Hello @Anjali_S

In your case the best solution would be to use a variable to bridge the 2 tables, as most of those methods only work on visible tables.
On row select in table1 set variable value -> use variable to filter table2 -> on button click on tab2 clear variable value.

Let me know if this helps or if it's not clear.

1 Like