I need to create a parent model that only shows records where the record id is in the list of child records returned in my child model. I tried using a condition of:
Matter__c.Id is in the set of values containing Matter__r.Id field returned from any row returned by my child model and am not getting any records returned even though there are records returned in my child model that meet the criteria. Is there a different way to go about this?
Page 1 / 1
Hi, Grace,
So if I understand correctly, you have two models, a parent model and child model. Parent model has a condition where Id is in the list of values for Matter__r.Id for rows in the child model? I have a few thoughts…
- For setting your condition, try using the Matter__c field (the reference field on the child object), rather than traversing through the relationship to get Matter__r.Id.
- Make sure the lookup field Matter__c is included in the child model.
- If you’re still not seeing records in the parent model, it’s possible the condition is being set correctly, but we are not actually querying for the records. Are you attempting to load data into both of these models on page load? Or later (like when a button is clicked)?
Emily
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.