Activity › Forums › Salesforce® Discussions › Where do we use apex:detail and apex:inlineeditsupport in Salesforce?
-
Where do we use apex:detail and apex:inlineeditsupport in Salesforce?
Posted by Shubham on August 1, 2017 at 11:56 AMdifference between <apex:detail> and <apex:inlineeditsupport>
Parul replied 7 years, 8 months ago 3 Members · 2 Replies -
2 Replies
-
Hi Shubham,
apex:inlineeditsupport :-
This component provides inline editing support to <apex:outputField> and various container components. In order to support inline editing, this component must also be within an <apex:form> tag.
The <apex:inlineEditSupport> component can only be a descendant of the following tags:
<apex:dataList>
<apex:dataTable>
<apex:form>
<apex:outputField>
<apex:pageBlock>
<apex:pageBlockSection>
<apex:pageBlockTable>
<apex:repeat>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.
For more information you can refer to link1, link2.
Hope this helps.
- [adinserter block='9']
-
<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.<apex:page standardController=”Account”>
<apex:detail subject=”{!account.ownerId}” relatedList=”false” title=”false”/>
</apex:page>With using <apex:inlineEditSupport /> you can enable inline edit only on certain fields and not on entire block and so you can use dependent picklists and lock certain fields from inline editing within the pageblock.
Thanks
Log In to reply.