Tuesday, January 28, 2014

What is the use of apex:detail component

What is the use of apex:detail component

: With the help of this Visualforce component, we can diretly get complete behavior of page layout defined for logged in users profile. There is no need to add fields, related lists explicitly. Read more here.
https://na3.salesforce.com/apex/AccountDisplay?id=0018000000MDfn1
<apex:page standardController="Account">
    <apex:detail/>
</apex:page>

You can show only a particular related list; such as the list of case records that are related to the account record you are viewing. Add the following tag:
<apex:relatedList list="Cases" />
  

No comments:

Post a Comment