I’m currently testing what’s possible with appsmith and have created a simple master/details view, i.e. a table as master and a form as detail. What is the recommended approach to refresh the table after an update from the form?
The only solution I see so far is to run the get query for the master table after the update query in the click handler of the submit button on the form - but this completely resets the table and apparently setting selectedRowIndex on the previously selected row does not work.
Obviously, I want to “keep” the table with the row selected.
Ok, that works, but creates a new problem (kind of). Apart from the master table and the detail, I have a secondary table which is associated to the master table by a foreign key.
i.e. the query for the secondary table uses an id in the where clause based on the selected row in the master table.
So now the master table loads with the default selected row set, but this doesn’t properly trigger the query for the secondary table anymore… well, most of the times…