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
Vivek ManchandaVivek Manchanda 

How to call an S-Controls in Visual force Page ?

Hi All

Can I call an S-Controls in Visual force Page ?

I have created an S-Controls and I want to call that S-Controls in my Visual force Page  .

That S-Controls cantain the Flex file .

I know little bit that I have to pass my S-Controls ID in my VF page . but how ??

Thanks
Vivek Manchanda
aballardaballard

Not sure exactly what you want to do, but you can generate an scontrol inline in a page by using the <apex:scontrol> component.   Or you can generate the URL to link to an scontrol page by using the Urlfor function in an el expression  -- something like {!Urlfor($scontrol.xxxx)}

 

dchasmandchasman
Vivek,

While you can certainly cobble together the old (scontrols) uing <apex:scontrol> (was one of the first components we wrote in fact to provide a bridge) and the new (visualforce) I would recommend taking the small amount of time required to move natively to visualforce (e.g. using <apex:flash> and static resources in your case I suspect). Keeping scontrols in the mix is going to produce a suboptimal user experience and performance will also suffer.