Display Master-Detail info in two tables

edited October 15, 2019 in Questions
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

Comments

  • Matt SonesMatt Sones 💎💎💎
    edited February 10, 2017
    With two tables, you could it the way that you've described with a row action on the master table, with the following steps:
    1. 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}}.
    2. Query the child model (standard/full).
    That's it!
    Just make sure your child model is set to not load any records on pageload.
  • edited October 15, 2019
    I like Matt's idea. You could also consider a queue or drawer.
  • edited February 2, 2017
    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
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!