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
Naresh.soft12Naresh.soft12 

to display account and contact details with out using controller?

can any one share to display account and contact details with out using controller program?
Harish RamachandruniHarish Ramachandruni
Hi,


you can use standadr controller or java script .



Regards,
Harish.R.
Nayana KNayana K
<apex:page standardController="Account">
<apex:pageBlock title="Account Info">
You are viewing the {!account.name} account.
</apex:pageBlock>
<apex:pageBlock title="Contacts">
<apex:pageBlockTable value="{!account.Contacts}" var="contact">
<apex:column value="{!contact.Name}"/>
<apex:column value="{!contact.MailingCity}"/>
<apex:column value="{!contact.Phone}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>

You can use this sample code.