• #31370
    Forcetalks

    What is the use of apex:detail component in Salesforce?

    What is the use of apex:detail component in Salesforce?

    Tagged: , , , , , , ,

    #31374
     Prachi #7
    Forcetalks

    Hello Avnish,

    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.

    Thanks.

    #31375
    Forcetalks

    Thanks.

    #34589
    Salesforce | shariq shariq #1
    Forcetalks

    Hi,

    To understand it more here is the example –

    <!– For this example to render properly, you must associate the Visualforce page
    with a valid account record in the URL.
    For example, if 001D000000IRt53 is the account ID, the resulting URL should be:
    https://Salesforce_instance/apex/myPage?id=001D000000IRt53
    See the Visualforce Developer’s Guide Quick Start Tutorial for more information. –>

    <apex:page standardController=”Account”>
    <apex:detail subject=”{!account.ownerId}” relatedList=”false” title=”false”/>
    </apex:page>

    Hope this helps.

    #34701
    Salesforce | Parul Parul #2
    Forcetalks

    Hi

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

    Visualforce page:

    <apex:page controller=”Sample”>
    <apex:form >
    <h1>Below is the Account detail</h1>
    <apex:detail subject=”{!AccountId}” relatedList=”false”/>
    </apex:form>

    </apex:page>

    Apex Controller:

    public class Sample {
    public Id AccountId {get;set;}

    public Sample() {
    AccountId = ‘0019000001BoVNx’;
    }
    }

    thanks

Viewing 5 posts - 1 through 5 (of 5 total)

Please to reply to this topic.

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2018 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?