When you create a BI Beans thin bean in a servlet application, and when you load a thin presentation bean from the BI Beans Catalog, you should complete the following initialization tasks:
Ensure that you have connections to data and to the BI Beans Catalog.
Ensure that you have configured the BI Beans Catalog for HTML-client applications.
Instantiate the ThinBeanUI
or load
it from the Catalog.
If you load a presentation from the Catalog, then store its data source
in a Query
object. Call the getDataSource
method
of the presentation to get its Query
object.
Set the ThinBeanName
of the thin bean. If you have a thin
presentation, then also set the ThinBeanName
of the Query
object.
Set the locale and the error handler for the thin bean.
If you have standard initialization code that you perform on all thin beans, then perform standard initialization.
Call the setBaseState
method on the thin bean to initialize
state management. If you have a thin presentation bean, then call the setBaseState
method of the presentation and of the Query
object.
Perform any custom initialization on the thin bean.
Store the thin
bean in the HTTP session, or register it with the ServletRequestHandler
.
If you have a thin presentation bean, then also store or register the Query
object.
Before you render the page, get the state of the thin bean (and of its query, if there is one) and store it.
BI Beans Request-Handling
Sequence
Rendering Thin Beans
Managing State in an HTML-Client
Application