You need to sign in to do that
Don't have an account?
Enrico dev
Use apex:relatedlist in visual force component
This is my VF page "TestPage":
Visual Force component "Test Component":
Problem is that <apex:relatedList list="Opportunities"/> or <apex:relatedList list="record.Opportunities"/> is not showed in the main page"TestPage".
Do you know how can i show, in the main page, a related list added in a component?
Thanks in advance for any advice.
<apex:page standardController="Account"> <c:TestComponent recordId="{!account}" /> </apex:page>
Visual Force component "Test Component":
<apex:component controller="Taccount"> <apex:attribute name="recordId" description="Record Id to show field history for." type="sobject" assignTo="{!record}" required="true"/> <apex:relatedList list="Opportunities"/> <apex:relatedList list="record.Opportunities"/> </apex:component>
Problem is that <apex:relatedList list="Opportunities"/> or <apex:relatedList list="record.Opportunities"/> is not showed in the main page"TestPage".
Do you know how can i show, in the main page, a related list added in a component?
Thanks in advance for any advice.
<apex:page standardController="Account">
<c:TestComponent recordId="{!account}" />
</apex:page>
Visual Force component "Test Component":
<apex:component controller="Taccount">
<apex:attribute name="recordId" description="Record Id to show field history for." type="sobject" assignTo="{!record}" required="true"/>
<apex:relatedList list="Opportunities"/>
<apex:relatedList list="record.Opportunities"/>
</apex:component>