Activity Forums Salesforce® Discussions display related records in Object view

  • Avnish

    Member
    September 13, 2018 at 1:33 pm

    Hello Anjali,

    You can use following tag to display related records in object view

    <apex:relatedList list="Account"> <apex:facet name="header">Titles can be overriden with facets</apex:facet> </apex:relatedList>

    Thanks.

  • Parul

    Member
    September 13, 2018 at 6:12 pm

    Hi Anjali,

    You can use following tag to display related records in object view

    <apex:repeat var="exam" value="{!relatedTo.Account__r}">

     

    Thanks

  • shariq

    Member
    September 14, 2018 at 12:49 am

    Hi,

    Try this -

    <!-- For this example to render properly, you must associate the Visualforce page
    with a valid account record in the URL.
    For example, if 001D000000IRt53 is the account ID, the resulting URL should be:
    https://Salesforce_instance/apex/myPage?id=001D000000IRt53
    See the Visualforce Developer's Guide Quick Start Tutorial for more information. -->

    <apex:page standardController="Account">
    <apex:pageBlock>
    You're looking at some related lists for {!account.name}:
    </apex:pageBlock>

    <apex:relatedList list="Contacts">
    <apex:facet name="header"></apex:facet>
    </apex:relatedList>

    </apex:page>

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

Pros & Cons of Lightning Component vs. 3rd party frameworks in Salesforce UI development

Video in

Nikita drops by to share his invaluable experience of using popular 3rd party frameworks in Salesforce. http://media.blubrry.com/salesforceway/audio.xmcdn.com/group42/M05/25/57/wKgJ81rXk6XjaZIAAU_I_KtprFM998.m4a