getViewMode();
The getViewMode method determines whether the source of regular report chart can be edited or not.
This method returns False if the source of regular report chart can be edited (default). Otherwise it returns True.
To execute this example, the HTML page must contain the ReportBox component named reportBox (see Example of the ReportBox Component Layout). A chart must be available on regular report sheet. If the chart is loaded, check whether it is an image and if the chart source is available for editing:
var prxChart = reportBox.getDataView().getGridView().getTabSheet().getModel().getObjects()[0].getITabObject(); //get regular report chart if (prxChart.isLoaded() == True) { vm = prxChart.getViewMode(); img = prxChart.isImage(); alert("Chart source is only available in view mode: " + vm + "\n The chart is an image: " + img) };
After executing the example, if the chart is loaded, a message informing whether the chart is an image and whether the chart source can be views, appears on the screen.
See also: