Namespace -- http://xmlns.oracle.com/bibeans
Group -- BI uiXML elements
Type of element -- Definition
Insert the preRenderingCallback element in any page where you want to define a method that will modify attributes of the elements in a BI Beans UIX page before the page is rendered.
No attributes. This element must contain either an instance element or a method element that you insert using code insight.
The preRenderingCallback element is a child of the biThinSession element.
This example uses a preRenderingCallback element that contains a method element to hide components of a presentation before the page that contains the presentation is displayed. The following XML fragment shows the definition of the preRenderingCallback.
<!-- Sample definition of a preRenderingCallback --> <preRenderingCallback> <method class = "myClass", method = "hidePresComponents"/> </preRenderingCallback>
The following code is an example of the method that the sample callback will execute.
//Retrieve the presentation "pres1" that is defined in the same page as the callback. //Hide the presentation title, subtitle, and footnote before the page is displayed. public static void hidePresComponents (BajaContext context, Page page) throws Throwable { Hashtable pageObjects = BIHandler.initBIObjects (context, page); ThinDataviewCommon dataview = (ThinDataviewCommon) pageObjects.get ("pres1"); dataview.getDataviewTitle().setVisible(false); dataview.getDataviewSubTitle().setVisible(false); dataview.getDataviewFootnote().setVisible(false); }