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
TrickTrick 

Detail page not displaying,Do not understand,Help Please

 

 Hi friends ,
I do not see detail page and its related lists when I run below given code.How do I see contact detail page and its related lists..I am specifying contactID in the URL Please help?
<apex:page standardcontroller="contact">
<apex:pageblock Title="hello{!$User.FirstName}!">
  Hello {!$User.FirstName}
  </apex:pageblock>  
  <apex:detail subject="{!contact.ownerid}" relatedList="true" title="false"/>
</apex:page>

 

TrickTrick

I have tried with other objects such as account,contact,opportunity.But I am not able to access detail page.I have copied the opportunity URL .I do not see opportunity record.

 

I have pasted the recordID of opportunity in the below given URL.

 

https://c.na8.visual.force.com/apex/india?=006C000000ZSHIP

 

Is there something that I am missing.?

 

I have access to all the objects .I have tested with the below given statements

 

 

<apex:page standardController="opportunity">
    <apex:pageBlock rendered="{!$ObjectType.opportunity.accessible}">
        <p>This text will display if you can see the opportunity object.</p>
    </apex:pageBlock>
    <apex:pageBlock rendered="NOT({!$ObjectType.opportunity.accessible})">
        <p>Sorry, but you cannot see the data because you do not have access to the opportunity object.</p>
    </apex:pageBlock>
</apex:page>

<apex:page standardController="opportunity">    <apex:pageBlock rendered="{!$ObjectType.opportunity.accessible}">        <p>This text will display if you can see the opportunity object.</p>    </apex:pageBlock>    <apex:pageBlock rendered="NOT({!$ObjectType.opportunity.accessible})">        <p>Sorry, but you cannot see the data because you do not have access to the opportunity object.</p>    </apex:pageBlock></apex:page>

 

TrickTrick

I got the solution, It was a silly mistake