Can any one help me out ?I'm Creating an OpportunityLineItem(Opportunity Product) page in Visualforce page and now how should i call the related list(Schedule) fields to get display in Visual Force pages .Any Suggestions

Here is the Code :

<apex:page standardController="OpportunityLineItem" sidebar="false" showHeader="false">

        <apex:pageBlock title="Opportunity Product">
            <apex:pageBlockButtons location="Top">
                <apex:commandButton value="Edit" />
                <apex:commandButton value="Delete" />

            <apex:pageBlockSection title="Opportunity Product Detail">
                <apex:inputField value="{!OpportunityLineItem.Opportunity.Name}" />
                <apex:inputField value="{!OpportunityLineItem.Product2.Name}" />
                <apex:inputField value="{!OpportunityLineItem.ProductCode}" />
                <apex:inputField value="{!OpportunityLineItem.ListPrice}" />
                <apex:inputField value="{!OpportunityLineItem.UnitPrice}" />
                <apex:inputField value="{!OpportunityLineItem.Quantity}" />
                <apex:inputField value="{!OpportunityLineItem.ServiceDate}" />
                <apex:inputField value="{!OpportunityLineItem.TotalPrice}" />
                <apex:inputField value="{!OpportunityLineItem.Description}" />

        <apex:pageBlock title=" Schedule">
            <apex:pageBlockButtons location="top">
                <apex:commandButton value="Edit" />
                <apex:commandButton value="Delete" />
                <apex:commandButton value="Re-Establish" />
                <!--<apex:inputField value="{!OpportunityLineItemSchedule.Date}"/>-->


1 Answer 1


Try using apex tag


Refer this documentaion for details.

  • :Thanks for your reply :I have used <apex:relatedList list="OpportunityLineItemSchedule__r"/> ,i would like the fields to get displayed in the related list object.
    – nikkey
    Commented Oct 10, 2014 at 11:54
  • @nikkey: You simply need to add those fields on page layout. Go to Opportunity product page layout -> Edit -> click Related List from left menu -> Find your custom object related list -> edit it and add required fields. Done :)
    – Aditi Jain
    Commented Oct 11, 2014 at 6:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .