Report.EnabledRanges

Syntax

EnabledRanges: Array of Object;

Description

The EnabledRanges property determines ranges available for editing.

Comments

Use JSON or the setEnabledRanges method to set the property value, and the getEnabledRanges method to get the property value.

To enable editing of all cells, use the previewEnableEdit metadata property, for example:

// Get metadata
meta = prxReport.getMetadata();
// Enter changes to metadata
meta.options.previewEnableEdit = true;
// Set metadata again
prxReport.setMetadata(meta);

Example

To execute this example, the page must contain the ReportBox component named reportBox (see Example of the ReportBox Component Layout). Get the ranges available for editing:

// Get report
report = reportBox.getSource();
// Get editable ranges
report.getEnabledRanges();
// -> [ObjectBottomRight: Objectx: 5y: 7__proto__: ObjectTopLeft: Objectx: 3y: 6__proto__: ObjectdsoKey: 2sliceKey: 2__proto__: Object, Object, Object]

After executing the example the ranges available for editing are obtained.

See also:

Report