Birt supports interaction between URL parameters and report parameters, which can be well applied in REPORT query or Special Report Settings.
1. Report parameters-New Parameter
Name: variable name
Data Type: indicates the data type. If you concatenate an SQL statement, the data type does not matter.
Display type: Display format when input
Is required: required or not. You can cancel the selection.
Hidden: whether to hide. if selected, the parameter input interface is not displayed during report display.
2. Add a dynamic text in the report.
Double-click to set properties, category-Report parameters, sun-category-all, double click to insert, select the added parameter, OK
3. preview the report and enter the variable value. The input value is displayed in dynamic text.
Or add the parameter frameset directly in the running environment URL? _ Report = report/statad. rptdesign & para1 = value1, which can also receive the value of parameter in the report.
4. Use Params ["para1"]. Value in the report script to use the variable value.