You need to sign in to do that
Don't have an account?
Akshu
I want VF page for this requirement
1.created custom button on details page of account account "show" requirement is:
when click on this button show rcontacts related to account in table format.
when click on this button show rcontacts related to account in table format.
You can use following type of VF implementation to achieve this requirement.
VF Page logic: Apex Class:
You might want to make a few modification in the VF page since it shows the accounts as well.
Hope above information helps, Please mark as Best Answer so that it can help others in the future.
Thanks.
<apex:page controller="VFDisplayAccWithContactctrl">
<apex:form>
<apex:pageBlock>
<apex:pageBlockSection>
<apex:pageBlockTable value="{!accounts}" var="item">
<apex:repeat value="{!accounts}" var="accWrap">
<apex:outputText value="User ID : {!accWrap.userId}"/>
<apex:repeat value="{!accWrap.accounts}" var="acc">
<apex:outputText value="Account : {!acc.Name}"/>
<apex:repeat value="{!acc.contacts}" var="cont">
<apex:outputText value="Contact : {!cont.Name}"/>
</apex:repeat>
</apex:repeat>
</apex:repeat>
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>