Saturday, November 3, 2012

Standard UI Components:

Standard UI Components:
This is a simple example for standard user interface components within standard controller.

<apex:page standardController="Account">
<p>Hello {! $User.FirstName}!</p>
<p>You are viewing the {! account.name} account.</p>
<p>Here's the Region field: {! account.Region__c}</p>
<p>Here's the owner of this account: {! account.Owner.Name}</p>
<apex:pageBlock title="Custom Output">
<apex:pageBlockSection title="Custom Section Title">
<apex:outputField value="{!account.Name}"/>
<apex:outputField value="{!account.Owner.Name}"/>
</apex:pageBlockSection>
</apex:pageBlock>
<apex:pageBlock title="My Account Contacts">
<apex:pageBlockTable value="{! account.contacts}" var="item">
<apex:column value="{! item.name}"/>
</apex:pageBlockTable>
</apex:pageBlock>
<apex:detail relatedList="false" />
<apex:relatedList list="Cases" />

</apex:page>

No comments:

Post a Comment