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
public class testClasss { public List<Account> accs {get { return [select id, name, (select id from Opportunities) from Account];}set;} }
<apex:page controller="testClasss" > <apex:pageBlock> <apex:pageblockTable value="{!accs}" var="acc"> <apex:column value="{!acc.name}"/> <apex:column value="{!acc.Opportunities.size}"/> </apex:pageblockTable> </apex:pageBlock> </apex:page>
Here is the class and VF page that should work for you.
Controller
VF
All Answers
Here is the class and VF page that should work for you.
Controller
VF