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
The parameter names for username and password credentials
specified in the BIRT report design must match the parameter names
defined in the Report Launcher configuration file:
reportlauncher.properties.
The default configuration for these parameters is:
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.
- Open the target report.
- Click the Data Explorer tab.
- Select Report Parameters. Then,
right-click and select New parameter from
the context menu.
- Type the name for the parameter, UserId for
example.
- Customize the parameter as desired.
Most
settings effect how the parameter is displayed by the BIRT parameter
prompter.
- When finished, click OK.
- Repeat the steps above to define the Password parameter.
Tip: Select the Do not echo input parameter
setting to hide password characters in the BIRT parameter prompt view.
- 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.