birtdata-cube

How to pass parameters to data set behind a data cube in BIRT?


I have a data cube which is based on a data set. The data set takes a number of parameters. So far I have not been able to find out how to pass parameters to that data set. I see that it is possible to set a filter on the data cube but that doesn't help me.

How can I pass the necessary parameters to the data set?


Solution

  • To pass parameters to a relational data source in BIRT:

    If you now preview the report, it should prompt you for parameter values and then display the report (appropriately filtered).

    If you were using a non-relational data source, you would set up a filter at the dataset level instead of parameterising the query - there is an example of this approach here. (You can do this with SQL-based reports too, but it is less efficient than filtering at the query level.)