function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
fatmonkfatmonk 

Custom Detail Page RelatedList does not show

I have two custom objects Invoice__c and Estimate__c which looksUp to contract.

On Contract standard detail page displays both Invoives and Estimates RelatedList but if I create a costom detail page, they both do not show;

Here is example link to custom detail page: 

 

.visual.force.com/apex/Contract?id=800U0000000DV5z

 

vf:

 

<apex:page standardController="contract">
    <apex:pageBlock >
        <apex:detail relatedList="true"/>

    </apex:pageBlock>
</apex:page>

 

am i missing something?

@anilbathula@@anilbathula@

Hi fatmonk,

 

just try this code:-

<apex:page standardController="contract">
    <apex:pageBlock >
       

    </apex:pageBlock>

 <apex:detail relatedList="true"/>
</apex:page>

----------------------------------------------------------------

(or)

-----------------------------------------------------------------

<apex:param name="cid" value="{!Contract.id}"/>

<apex:detail subject="{!$CurrentPage.parameters.cid}" relatedList="True" title="false"/>

-----------------------------------------------------------------

 

 

 

 

Thanks

Anil.B

 

fatmonkfatmonk

Thanks,

It was on a Full sandbox; I discover, it works fine on production server.

fm

fatmonkfatmonk

Oops, It works on Sandbox but not on developer server???/; I will try yours