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
narensfdcnarensfdc 

dispaly list of contacts with out Custom controller or extentions

 Hi 

 

  Please help me out 

 

 1) How to dispaly list of contacts of account on Visual force page with out Custom controller or extentions?

 

 2)How to display accounts contacts and contact details(lookup to contact) on one visual force page?

 

3) On one object 3 triggers are there, i need to execute triggers one after the other. Is it possible, if yes how, no why?

 

 

Best Answer chosen by Admin (Salesforce Developers) 
PremanathPremanath

Account with Contacts

 

<apex:page standardController="account" sidebar="false">
<apex:pageBlock title="Account">
<apex:pageblockTable value="{!account}" var="a" >
<apex:column value="{!a.name}"/>
<apex:column value="{!a.AccountNumber}"/>
<apex:column value="{!a.NumberOfEmployees}"/>
<apex:column value="{!a.Rating}"/>
</apex:pageblockTable>

<apex:relatedList id="Contacts" subject="{!account}" list="Contacts" title="Contact"/>
</apex:pageBlock>
 
</apex:page>

 

 

 

 

Triggers

You can create Based on your Requirement Those triggers will fire

We can Use

NewMap and OldMap keywords

Based on that we can create

 

Prem