Activity Forums Salesforce® Discussions Where do we use apex:detail and apex:inlineeditsupport in Salesforce?

  • shariq

    Member
    August 1, 2017 at 12:34 pm

    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 link1link2.

     

    Hope this helps.

     

  • Parul

    Member
    September 17, 2018 at 6:39 am

    <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.

Popular Salesforce Blogs

Popular Salesforce Videos