Setting the parameter fields for a report allows a report that contains parameter prompts to always be displayed using the same values. Also, setting parameter fields can be used to change the default values or modify the values as needed.
This tutorial shows you the basic steps required to programmatically set parameter fields for a report that is displayed using the viewer. The report used in this example is assumed to have a Country parameter field. The default value of the parameter field and the new value that the code sets them are as follows:
Default value: Canada
Set value: Spain
Note: For any report used with this tutorial sample, you must have the appropriate JDBC data source configured so that it can be accessed by your application server. The report used in this example is not included with the tutorials.
It is assumed that you have already created a report source. If you haven't, see How to create a report source for details.
The tutorial contains the following sections:
Business Objects http://www.businessobjects.com/ Support services http://www.businessobjects.com/services/support/ |