This will work for versions of BIRT
later than 2.1. Versions prior to BIRT 2.1 had to do it a different way. If you
are using a later version of BIRT that has the drop-down box, go ahead and
select rprmEmployeeID from the list. Otherwise, click on the function button
(labled fx next to Default Value) to open up the Expression Editor. Under
the Categories on the bottom: select Report Parameters, Sub Category
---All---, and double-click on rprmEmployeeID. Once finished, click on OK.
Here, we see the old fashioned way, using an Expression to link to the value of the
Data Set Parameter to the Report Parameter.
Report Parameters
[ 122 ]
15. Under the Data Explorer, right-click on dsetEmployeeInfo and choose
Insert in Layout, or "drag and drop" the dsetEmployeeInfo onto the Report
Designer's Layout pane.
16. Preview the report.
The first time you preview the report with a Report Parameter, the BIRT Designer
will bring up a Dialog box asking you to enter the Employee ID. Enter 1002 for the
Employee ID to see the results of your report.
You can change the parameters to see other results after running the preview
report, by clicking on the Show Report Parameters button in the Preview pane.
The example just explained should demonstrate that there is a distinct difference
between Report Parameters and Data Set Parameters.
Pages:
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125