Control.isVisibleOnSheet

Syntax

isVisibleOnSheet (sheetKey);

Parameters

sheetKey. Sheet key.

Description

The isVisibleOnSheet method indicates if the control is displayed in the specified report sheet.

Comments

If this method returns True the control is displayed for the specified report sheet. Otherwise the method gets False.

Example

To execute this example, the HTML page must contain the ReportBox component named reportBox (see Example of the ReportBox Component Layout). The source regular report must contain at least three controls.

        function getMd() {
            var ctrlV = reportBox.getDataView().getControlBar().getControl(3);
            if (ctrlV.getSource().isVisibleOnSheet(1) == true)
            { alert(ctrlV.getMetadata().Data.Id) }
        }

After executing the getMd function, if the third control is visible for the first report sheet, a message with control identifier appears on the screen.

See also:

Control