Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

$SControl

A global merge field type to use when referencing an existing custom s-control by name. This merge field type results in a URL to a page where the s-control executes.

Visualforce pages supersede s-controls. Organizations that haven't previously used s-controls can’t create them. Existing s-controls are unaffected and can still be edited.

Important

Usage

Use dot notation to access an existing s-control by its name.

Example

The following example shows how to link to an s-control named HelloWorld in a Visualforce page:
1<apex:page>
2<apex:outputLink 
3    value="{!$SControl.HelloWorld}">Open the HelloWorld s-control</apex:outputLink>
4</apex:page>
Note that if you simply want to embed an s-control in a page, you can use the <apex:scontrol> tag without the $SControl merge field. For example:
1<apex:page>
2    <apex:scontrol controlName="HelloWorld" />
3</apex:page>