function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
<apex:page controller="accContrl"> <apex:pageBlock> <apex:pageBlockTable value="{!accList}" var="acc"> <apex:column value="{!acc.id}"/> <apex:column value="{!acc.name}"/> <apex:column headerValue="Contact"> <apex:pageBlockTable value="{!acc.Contacts}" var="con"> <apex:column value="{!con.name}"/> </apex:pageBlockTable> </apex:column> <apex:column headerValue="Opportunity"> <apex:pageBlockTable value="{!acc.Opportunities}" var="opp"> <apex:column value="{!opp.name}"/> </apex:pageBlockTable> </apex:column> </apex:pageBlockTable> </apex:pageBlock> </apex:page> public class accContrl{ public List<Account> accList {get;set;} public accContrl(){ accList =[Select id,name,(select id,name from contacts),(select id,name from opportunities) from account]; } }
If this solves your issue, please mark it as solved.
All Answers
If this solves your issue, please mark it as solved.