We have a master-detail relationship that we’re wanting to display in two tables. Basically the idea is to have one table with the master records and when one of them is selected it displays all of the detail records related to that master in a second table. Anyone have any experience with this or done this sort of thing before? We’ve looked at drawers but ideally we’d like to display the info this way instead.
Thanks,
-M
Page 1 / 1
With two tables, you could it the way that you’ve described with a row action on the master table, with the following steps:
- Activate and Set value of the named condition on your child model (the condition on the master/detail field). The value should probably be set to {{Id}}.
- Query the child model (standard/full).
That’s it!
Just make sure your child model is set to not load any records on pageload.
I like Matt’s idea. You could also consider a queue or drawer.
Matt,
I think a queue would be the best way to solve this since the queue component is ideal for stuff like that.
Setup the child model as Matt Sones described it, but instead of a row action setting the condition you would have the queue “Item Action” do this.
Cheers
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.