Skip to main content

I have a deck that is showing cards for all of our open opportunities within a certain category. I want to display within each card the opportunity line items linked to the opportunity of that card and do so within a Skuid list. A table isn’t looking quite right. I can’t seem to find a way to set the context to get this to work. Would lover some help on how to do this.

Jamie,

The context on your list component should be set to OpportunityId = Id. Since the deck is on your Opportunity model and the List on your OpportunityLineItem model, the OpportunityId field from OpportunityLineItem should be matched with the Id from Opportunity.

When setting context, the first field is the field on your inner component, and the second field (merge field) is on your container component.


Thanks @david.burns! I thought I was doing that, or did it at least once, but apparently not because once I did it just now, everything worked just fine. Thanks for the help!


@Jamie_Buck-Tomek Glad to help!

Additionally, if you’re planning to include the footer in your deck so that someone can load more Opportunity cards, you may want to include a model action on your Opportunity model that when requeried, will query the OpportunityLineItem model and adds more records to the model. That way there is always data.


Reply