Using the setOwnForm method

If your JSP page does not contain any controls that require post back, you should set the setOwnForm method to true. Doing so allows the viewer to handle the view state information automatically. The view state is used to perform client-side caching of information about the current state of the report. If you have other controls on the page, you must ensure that setOwnForm is set to false and handle the view state information manually.

The following example shows how to set the view state information manually:

viewer.setOwnForm(false);

viewer.setViewState((String) session.getAttribute("viewState"));

viewer.processHttpRequest(request, response, getServletContext(), pageContext.getOut());

session.setAttribute("viewState", viewer.getViewState());

Note:    setOwnForm must be set to true in order for parameter prompting to work.



Business Objects
http://www.businessobjects.com/
Support services
http://www.businessobjects.com/services/support/