You need to sign in to do that
Don't have an account?
Deepanshu Kochar
Not able to access Account's fields in Account standard controller in VF page
I just started with Visualforce and tried to create a page using standard controller(account) using the code below , however the output shows only one of the field in the preview , i.e Account.name .
<apex:page sidebar="false" standardController="Account" >
<apex:pageBlock title="Account Summary">
<apex:pageBlockSection>
Name : {! Account.name}<br>
Phone : {! Account.Phone}<br>
Industry : {!Account.Industry}<br>
Revenue : {!Account.AnnualRevenue}
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
Output :
:
I should be getting all the fields. , what am i doing wrong ?
<apex:page sidebar="false" standardController="Account" >
<apex:pageBlock title="Account Summary">
<apex:pageBlockSection>
Name : {! Account.name}<br>
Phone : {! Account.Phone}<br>
Industry : {!Account.Industry}<br>
Revenue : {!Account.AnnualRevenue}
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
Output :
:
I should be getting all the fields. , what am i doing wrong ?
Was'nt closing the break tag before