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.
apex:scontrol
An inline frame that displays an s-control.
Note: s-controls have been superseded by Visualforce pages. After March 2010 organizations that have never created s-controls, as well as new organizations, won't be allowed to create them. Existing s-controls remain unaffected.
Example
1<!-- For this component to work, you must have a valid s-control defined. -->
2<apex:page>
3 <apex:scontrol controlName="HelloWorld" />
4</apex:page>Attributes
| Attribute Name | Attribute Type | Description | Required? | API Version | Access |
|---|---|---|---|---|---|
| controlName | String | The name of the s-control displayed. For this value, use the s-control's name field, not its label. | 10.0 | global | |
| height | Integer | The height of the inline frame that should display the s-control, expressed either as a percentage of the total available vertical space (for example height="50%"), or as the number of pixels (for example, height="300px"). | 10.0 | global | |
| id | String | An identifier that allows the s-control component to be referenced by other components in the page. | 10.0 | global | |
| rendered | Boolean | A Boolean value that specifies whether the component is rendered on the page. If not specified, this value defaults to true. | 10.0 | global | |
| scrollbars | Boolean | A Boolean value that specifies whether the s-control can be scrolled. If not specified, this value defaults to true. | 10.0 | global | |
| subject | Object | The ID of the record that should provide data for this s-control. | 10.0 | global | |
| width | Integer | The width of the inline frame that should display the s-control, expressed either as the number of pixels or as a percentage of the total available horizontal space. To specify the number of pixels, set this attribute to a number followed by px, (for example, width="600px"). To specify a percentage, set this attribute to a number preceded by a hyphen (for example width="-80"). | 10.0 | global |