-1

According to the below article, easy way to bind all child records when we use a standard controller is {!Account.Contacts} - {!Parent.RelationshipName of Child}

 <apex:repeat value="**{!Account.Contacts}**" var="line">
      <tr>
         <td>{!line.Name}</td>
         <td>{!line.Phone}</td>
      </tr>
   </apex:repeat>  

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_std_access_data.htm

Now instead of Account, I have a custom parent object from CPQ package - SBQQ__Quote__c
Instead of contact, I have a custom child object from CPQ package - SBQQ__QuoteLine__c
How to bind these to objects together to get a list of all quote lines when using a Quote standard controller?

2

According to the below article, easy way to bind all child records when we use a standard controller is {!Account.Contacts} - {!Parent.PluralAPIName of Child}

This is an incorrect reading of the document. The child relationship name is the relationship name, which with standard objects is typically the plural of the API name of the child.

To find the relationship name, look at the relationship field on the child object. Note that with custom objects it will end in __r.

| improve this answer | |
  • +1 Took the text right outta my text field 😉. – sfdcfox Mar 4 at 14:51
  • Thanks so much for the guidance. I was also looking at the wrong child object! That's why I was getting the error :D Finally I narrowed the child object to SBQQ__LineItems__c. Steps followed : 1. Exported the Enterprise WSDL 2. Look for type="tns:QueryResult" under the SBQQ__Quote__c Object and pinned down the relationship name! – user3810861 Mar 4 at 15:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.