I have a query where I need to include the default selected rows from another table. Right now this query can only get the selected rows once the table is visible.
Here an image of my query showing the selected values as empty.
The table sets the default indexes to show every row is selected. But before I click on the tab routes the value is "".
I set up a variable selectedRouteIds
with the initial value {{ transformSelectedRouteIds.value }}
.
The transformSelectedRouteIds pulls the ids needed
const selectedRows = {{ tableRoutes2.selectedRows }};
if (!selectedRows || selectedRows.length === 0) {
return '';
}
const routeIds = selectedRows.map(row => row.id).join(',');
return routeIds;
How can I get the selected values into my variable before (on load) I click on Routes?