Like the JavaScript event handler in the previous section, the Java code example in Listing 24-2 uses the getUserRoles( ) method to retrieve the user’s roles and displays the contents of a table if the user role is Manager. The TableEH class extends the TableEventAdapter class and implements the event-handler script in the onPrepare event method.
Listing 24-2 import org.eclipse.birt.report.engine.api.script.eventadapter.TableEventAdapter;
|
|
Copyright Actuate Corporation 2012 |