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
OnDem DevOnDem Dev 

Access Custom Object Id in the Scontrol which gets displayed with the apex:detail tag

Hi,

 

I have a Custom object detail page which has SControl embedded in it.

My SControl has a merge field in it.

 

I created a Visualforce page and added the apex:detail tag in it.

When i viewed the Visualforce page, the entire detail page gets displayed well. But the SControl which is embedded on it is unable to get the value of the Merge Field. 

How should i get the value for the Merge Field or Custom Object id in this scenario?

 

Any help on this will be highly appreciated.

 

Thanks,

OnDem

 

OnDem DevOnDem Dev

As Visualforce and SControls are hosted in two different domains Force.com and Saleforce.com respectively.

 

If Visualforce page is created with a detail tag in it and if in the Custom Object detail page a S-Control is embedded.

 

How can a SControl know the Id of the Custom Object?

 

Thanks,

OnDem

 

zeezackisbackzeezackisback

Please can anyone answer this. I have a similar problem.

 

 var caseId ='{!Claim__c.Id}' ; not working!

zeezackisbackzeezackisback
This is an urgent request. Does anyone know how to get and request the variables for s-control in this way.