How can I select a row of a table based on a property of the data (eg Id) in the table.
So for example if I have a table in a module and pass to the module Id then I want the selected row of the table to be the one that matches the Id.
Not entirely sure of your setup here but there is a
currentRow property on a table. You can evaluate currentRow.Id to the Id you are passing in to the module.
Let us know if this doesn't help to un-block your app! Any screenshots would be helpful too
First you need to find the row that has the data you want the then set that row as selected.
const idx = table1.data.findIndex(el => el.id === idToSelect.value) table1.selectRow(idx)
Where you put this code will depend on many factors. Maybe the first place to try is the success event of the query that populates the table.
Thanks. That works