Passing credentials to BIRT reports at run time
Special configuration is required to build BIRT reports that allow user credentials to be passed or entered at run time. This section describes how to define HCL Compass data sources in BIRT that allow for user and password information to be passed as invocation parameters by the Report Launcher at runtime.
Before you begin
reports.launcher.birt.userParameterName=UserId
reports.launcher.birt.passwordParameterName=Password
If
you specify different parameter names in the BIRT report design, you
must update the values in the Report Launcher configuration file to
match the names in the report design.Procedure
To grant access to a group of users:
- Define the parameters.
- Update the HCL Compass Query
Data Source to use parameters.
- Select the target HCL Compass data source. Then, right-click and select Edit from the context menu.
- From the Edit Data Source dialog, select Property Binding.
- For User Name, click the button to the right of the text box.
- From Expression Builder Category list, select Report Parameters.
- From the Sub-Category list, select ---All---.
- Double-click the UserId item to create the parameter expression.
- Click OK to save the parameter retrieval code.
- For Password, click the button to the right of the text box.
- From Expression Builder Category list, select Report Parameters.
- From the Sub-Category list, select ---All--- .
- Double-click the Password item to create the parameter expression.
- Click OK to save the parameter.
- Verify Report Launcher parameter names.Confirm that the username and password parameter names configured in the BIRT report design match the values specified in the Report Launcher configuration file.reportlauncher.properties.