Page Include popup child records

AnnAnn
edited September 3, 2019 in Questions
I have a table displaying Accounts and a row action show popup with a pageinclude of the related Contacts.   I am unable to retrieve the correct Contacts in the page include as it always pulls the Contacts for the first Account in the table row.  

My page include query string is:  account_id={{$Model.Accounts.data.0.Id}}.   And the condition on the page include Contacts table is set to query on page load with the settings shown below.
Any suggestions on what I am doing wrong greatly appreciated!  I swear I had it at one point but not sure how.  Thanks!  (Milau 11.1)
image



Comments

  • edited September 3, 2019
    That 0 in the merge value is item 0 in the Accounts model data - by definition, the first row. You should be able to just use account_id={{{Id}}}. (You might need the triple mustache here.)
  • AnnAnn
    edited February 6, 2019
    That did it!!  Used triple brackets.   Thank you Mike!!
  • edited June 14, 2018
    Here when you said {{$Model.Accounts.data.0.Id}}, it will always take Id from the first row in Accounts model. If I am not wrong, you can just use {{{Id}}} to pass the Id of the Account record on which you were clicking this page action from.
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!