function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SFDCFunSFDCFun 

Problem in accessing Account object details

Hi Developers,

 

I have one VF page and it consist following code.....

 

Code:-

<apex:page standardController="Account" showHeader="false">
    <apex:pageBlock title="Hello {!$User.FirstName}">
         You are viewing the {!account.name} account.
  </apex:pageBlock>
  <apex:detail/>

</apex:page>

 

But it will show output  only as follows,,...

Output:-

Hello Rupam  

You are viewing the account.
 
 
So how i get all output using this code.
 
Thanks & Regards,
SFDC Fun...!!!
 
 

 

 

 

digamber.prasaddigamber.prasad

Hi,

 

Looks like you are running this page with url something like:-

 

https://<salesforce domain>/apex/<pageName>

 

If you run page something like below with accountId, you will get desired result

 

https://<salesforce domain>/apex/<pageName>?id=<accountId>

 

Let me know if you have any questions!

 

Happy to help you!

 

Regards,

Digamber Prasad

SFDCFunSFDCFun

Thank you very much...!!!!!!

KodiKodi
Hi,

If u run the visualforce page with pass Account id so then only display full details.
Ex: https://c.ap1.visual.force.com/apex/VFTest?id=0019000000PVRJb