You can add HTTP query parameters to specific events that the BI Beans thin beans render, by setting an event target for the event. The EventTarget
interface is defined in the oracle.dss.thin.beans
package. See the list of thin-bean events to find out which thin beans events support event targets.
The following code shows how to add application query parameters to a specific thin-bean event.
// create a PrintOptions bean that will collect print options to pass to the PrinterFriendlyView PrintOptions printOptions = new PrintOptions(); // create an EventTarget EventTargetImpl eventTarget = new EventTargetImpl(); // send the print event to the PrinterFriendly.jsp page eventTarget.setDestination("PrinterFriendly.jsp"); // send the print event to a specific PrinterFriendlyView eventTarget.setThinBeanTarget("MyPrinterFriendlyView"); // add the name of the view to print, through extra parameter Hashtable params = new Hashtable(); params.put("viewName", viewName); eventTarget.setExtraEventParameters(params); // set the EventTargetImpl on the init event printOptions.setEventTarget(PrintOptions.INIT_PRINTER_FRIENDLY_VIEW_EVENT, eventTarget);