How to use <apex:detail> in Visualforce Page?
<apex:detail>:The standard detail page for a particular object, as defined by the associated page layout for the object in Setup. This component includes attributes for including or excluding the associated related lists, related list hover links, and title bar that appear in the standard Salesforce application interface.
This tag supports following attributes:
Attribute Name
|
Description
|
id
|
An identifier that allows the detail component to be referenced by other components in the page.
|
inlineEdit
|
Controls whether the component supports inline editing.
|
oncomplete
|
The JavaScript invoked if the oncomplete event occurs--that is, when the tab has been selected and its content rendered on the page.
This attribute only works if inlineEdit or showChatter are set to true. |
relatedList
|
A Boolean value that specifies whether the related lists are included in the rendered component. If true, the related lists are displayed. If not specified, this value defaults to true.
|
relatedListHover
|
A Boolean value that specifies whether the related list hover links are included in the rendered component. If true, the related list hover links are displayed. If not specified, this value defaults to true. Note that this attribute is ignored if the relatedList attribute is false, or if the "Enable Related List Hover Links" option is not selected under Setup | Customize | User Interface.
|
rendered
|
A Boolean value that specifies whether the component is rendered on the page. If not specified, this value defaults to true.
|
rerender
|
The ID of one or more components that are redrawn when the result of an AJAX update request returns to the client. This value can be a single ID, a comma-separated list of IDs, or a merge field expression for a list or collection of IDs.
This attribute only works if inlineEdit or showChatter are set to true. |
showChatter
|
A Boolean value that specifies whether to display the Chatter information and controls for the record.
If this is true, and showHeader on < apex:page > is false, then the layout looks exactly as if the < chatter:feedWithFollowers > is being used. If this is true, and showHeader on < apex:page > is true, then the layout looks like the regular Chatter UI. |
subject
|
The ID of the record that should provide data for this component.
|
title
|
A Boolean value that specifies whether the title bar is included in the rendered component. If true, the title bar is displayed. If not specified, this value defaults to true.
|
Visualforce Example:
<apex:page standardController="Account">
<apex:detail subject="{!account.ownerId}" relatedList="false" title="false"/>
</apex:page>
No comments:
Post a Comment