Hello, I am creating an app that has a table with expandable rows. In these expandable rows I have another table that is an "in-depth" table of the selected row. I have already written a script that collapsed the previous row when I open a new row but the in-depth table doesn't update. It does update if I refresh the table (but that takes a couple seconds) or if I close and reopen the expanded row.
The transformer that is creating the in-depth table is referencing the selected source row of the outer table. Here is part of the transformer that is doing the reference.
I implemented these changes but I get a different set of issues with this. My expanded rows no longer auto collapse. I still get the same issues. When I click the new expanded row by the arrow key, the selectedRow doesn't fully change in the background is my only thought for what might be happening.
I appreciate you spending the time to help me with this. I'm still struggling to get it to work and I'm not sure what I'm missing. It feels like it should be pretty simple, when I expand the row the javascript query runs and generates the data for the table. I attached a video showcasing the changes I've made using your suggestions and the results. If you could advice me further I'd greatly appreciate it.
Apologies for the issue. I checked your reference GIF and provided all possible tips and solutions, but I'm not sure why it's not working. If possible, please share more details or the app's JSON file so I can help identify and fix the issue. This trick works perfectly in my app.
After sharing the JSON we were unable to find where the issue was so I've been trying more things. Next I tried to remove the filter from the transformer and have the table itself handle filter but that had the same issue.
Apologies for the issue with the expandable table trick not working. Additionally, I have a forum link that might help fix the issue. Please check it out:
Hey @drkb! The symptoms you're describing make it sound like selectedRow is changing asynchronously and not triggering your transformer correctly. If you can share a JSON export of your app with hard-coded query results, I'd be happy to take a look.
I did end up implementing that. Thank you very much for the help. It does have the caveat that if you select a row without expanding it the table changes.