You need to sign in to do that
Don't have an account?
Mahesh Dhara 9
Is anything wrong in below vf ocode,data not displaying plz help me
<apex:page standardController="Account">
<apex:pageBlock title="CONTACTS">
<apex:pageBlockTable value="{!Account.Contacts}" var="con">
<apex:column>
<apex:facet name="header" >NAME</apex:facet>
{!con.Name}
</apex:column>
<apex:column>
<apex:facet name="header">PHONE</apex:facet>
{!con.Phone}
</apex:column>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
<apex:pageBlock title="CONTACTS">
<apex:pageBlockTable value="{!Account.Contacts}" var="con">
<apex:column>
<apex:facet name="header" >NAME</apex:facet>
{!con.Name}
</apex:column>
<apex:column>
<apex:facet name="header">PHONE</apex:facet>
{!con.Phone}
</apex:column>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
Everthing is working fine. Try to hit the page by passing Account Id to the URL.
Thank You
All Answers
Everthing is working fine. Try to hit the page by passing Account Id to the URL.
Thank You
No there is nothing wrong with the code everything seems to be fine. You just need to pass the account Id (record id) with the URL.
like below https://sfdcamit--c.ap2.visual.force.com/apex/TEst1?id=00128000016cBci
https://yoursalesforcedomain--c.ap2.visual.force.com/apex/yourVFpage?id=YourAccountID
Let me know the outcomes.
Thanks,
AMit