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 NameAttribute TypeDescriptionRequired?API VersionAccess
controlNameStringThe name of the s-control displayed. For this value, use the s-control’s name field, not its label. 10.0global
heightIntegerThe 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.0global
idStringAn identifier that allows the s-control component to be referenced by other components in the page. 10.0global
renderedBooleanA Boolean value that specifies whether the component is rendered on the page. If not specified, this value defaults to true. 10.0global
scrollbarsBooleanA Boolean value that specifies whether the s-control can be scrolled. If not specified, this value defaults to true. 10.0global
subjectObjectThe ID of the record that should provide data for this s-control. 10.0global
widthIntegerThe 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.0global