isVisibleOnSheet (sheetKey);
sheetKey. Sheet key.
The isVisibleOnSheet method indicates if the control is displayed in the specified report sheet.
If this method returns True the control is displayed for the specified report sheet. Otherwise the method gets False.
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: