This article is the first part in a multi-part series of articles which will explore the possibilities and power of the onContentUpdate event.
BI Systems are much more than just 1 or 2 reports. The Actuate BIRT iServer, is a great platform to manage and deploy dozens, hundreds or even thousands of reports to a community of users in a secured fashion. With the power of the Interactive Viewer, BIRT reports come alive, empowering users to understand the report content as they need it to be.
The following line of code will return a handle to the JSAPI Viewer object that the report is currently being rendered within.
When combined with some of the functionality of JSAPI you can do some simple things, such as check to see if interactivity is turned on, and if not, turn it on. In the following example, the code will remove the ability for the user to select the Interactivity mode, as well as remove the ability for the user to print, export, or extract data from the report.
// Get the Viewer's current UI Options
var uiOptions = this.getViewer().getUIOptions();
// Remove ability for user to export, extract, print, and change interactivity options
// Set the modified UI Options back into the Viewer
// If Interactivity is not enabled, enable it
See the attached report design for the sample at work.
Stay tuned for future articles in this series which will showcase increased functionality and power of onContentUpdate, and taking interactivity to the next level.
Part 2 - Custom Interactions
Part 3 - Interactivity and Beyond
Part 4 - The Smart(er) Report