Skip to content

Enabling Javascript in OLAP Schemas

Some OLAP schemas contain Javascript to apply additional formatting on cell values. As of JasperReports Server version 8.2, Javascript in OLAP schemas is disabled by default because running scripts within the server can present a security risk.

If you want to use Javascript in OLAP schemas, you can change the following configuration setting and then restart the server:

Enabling Javascript in OLAP Schemas

Configuration File

…/WEB-INF/js.config.properties

Property

Description

olap.mondrian.scripts.enabled

When this property is set to true, JasperReports Server runs Javascript in OLAP schemas. The default is false, in which case the server will not run any Javascript in an OLAP schema or Ad Hoc view based on a schema containing Javascript will trigger an exception with the message: OLAP view scripting feature is disabled.

Note

Before enabling Javascript in OLAP schemas, make sure that access to the repository is properly secured by setting permissions so that only trusted users can create or modify your OLAP schemas.