InetSoft Product Information: Accessing the Report Event Handler
The client-side event handler can be accessed inside a BasicReplet and populated using the methods described on the previous "Client-side Report Event Handling" page.
Menu Event Handler
public void init(RepletRequest req) {
// add a popup menu to the page
addPopupMenu(new String[] {"Select Columns", …});
…
EventHandler eh = getEventHandler();
// prompt user to select columns for 'Select Columns'
eh.addRepletMenuCommand("Select Columns",
RepletCommand.promptParameters("columns"));
…
// declare the column selection parameters
RepletParameters params =
new RepletParameters("columns");
…
addRepletParameters(params);
}
| View a five-minute Flash demo to get an overview of what InetSoft's business intelligence software, Style Intelligence, can do and how easy it is to use. | ![]() |
Menu Event Refresh
public void init(RepletRequest req) {
// add a popup menu to the page
addPopupMenu(new String[] {"Refresh", …});
…
EventHandler eh = getEventHandler();
// refresh the page when 'Refresh' menu is selected
eh.addRepletMenuCommand("Refresh",
RepletCommand.refresh());
…
}
Embedded Customization
public void init(RepletRequest req) {
RepletRequest custom =
new RepletRequest(RepletRequest.CUSTOMIZE);
custom.setParameter("Show Volumes", new Boolean(true));
EventHandler eh = getEventHandler();
// when mouse clicks on the text, send a customization
// request to change the report. No customization dialog
// will be shown
eh.addMouseClickCommand("Text3", null,
RepletCommand.sendRequest(custom));
…
Since the BasicReplet class already provides convenient methods for adding common interactions, it is normally not necessary to deal with event handling directly. For example, attaching a popup menu to an item can be done by calling addMousePopupTriggerCommand() with the Replet Command.showMenu() as the command. This can also be easily achieved by calling addPopupMenu() on the BasicReplet. Before starting any EventHandler coding, determine if there is a BasicReplet method that provides the function.
| Previous: Client-side Report Event Handling | Next: Example of a Report Event Handler |
InetSoft Viewpoint |
"The open standards aspect is very important to us since it allows our customers to integrate our technology more easily and leverage assets they already have, in terms of hardware and software and IT skills. So based on this BI platform, our software delivers a host of front-end BI tools including visualization tools, enterprise reporting, monitoring dashboards, and analysis. Those functions were based on a very powerful patent-pending technology we call Data Block. This Data Block technology is really made up of a back-end data mashup engine and a caching middle layer. There is a front-end we call the worksheet, which is a Web-based, spreadsheet-like user interface that a power user can easily use to combine and transform data blocks. The data blocks are typically started at the atomic data block level. That is typically created by an IT or a BI specialist. They choose these data blocks and performance tune those data blocks. Then the power users can use those building blocks to build more complex, but more useful structures for answering the questions they have on hand. And all the data blocks you build, in turn become building blocks themselves. You can build on this architecture, building very sophisticated structures which you can use to answer a wide range of unanticipatible questions. " - Luke Liang, CEO, InetSoft |
More Resources:
| Summary of Report Design Options | ||
| Structured Reporting | ||
| Stored Procedures vs SQL Query | ||
| Specifying the Report Data Source |



