Reputation: 183
I want to create a BIRT report using multiple datasets. This is my requirement:
input == "A"
, I want to run the query X
, and if input == "b"
, I will run a query "Y"
.This is how I tried to achieve this.
I am not able to use the java script variable from dataset 1 into dataset 2.
Upvotes: 0
Views: 933
Reputation: 4332
You don't provide enough informations about how these datasets are used in the report. Declaring a dataset does not mean it is triggered, actually the first dataset won't be executed until it is invoked by a report element.
Typically, to achieve this we apply following steps:
It will force a silent execution of the first dataset, and therefore it will populate the global variable before the second dataset runs.
However this approach would not work if "Second Dataset" has to be used to populate selection items of a report parameter.
Upvotes: 2