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
parkerAPTparkerAPT 

Merge Fields not visible to embedded Scontrols when in apex:detail

I'm having trouble embedding an S-Control that uses a merge field inside a Page Layout when including the view using the component. Specifically, I have the following components:

 

  1. A Visual Force page using the standard Contact Controller with an <apex:detail> component.
  2. A S Control Component (HTML) that uses a merge field: <b>{!Contact.FirstName}</b>
  3. In the pageLayout, I have added this SControl to the Contact layout.

When I view the standard Contact view (Not my custom Visual Force Page), the Scontrol embeds correctly and displays a bold version of the Firstname.

 

However, inside my Visual Force page, the apex:detail does not properly display the FirstName. (other fields are also not visible)

  

Is this a limitation of embedding an SControl or am I doing something incorrectly?

 

Thanks