| Summary: | Conditional execution of a dataset | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Ciro Vladimir <cirovladimir> | ||||
| Component: | BIRT | Assignee: | Birt-ReportEngine-inbox <Birt-ReportEngine-inbox> | ||||
| Status: | RESOLVED WORKSFORME | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | wyan, zqian | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Ciro Vladimir
this could solve this issue too http://www.birt-exchange.org/forum/designing-birt-reports/12899-compute-sums-grid-2.html#post60283 This depends on how engine execute the invisible report items. actually you can change the report design handle in the onPrepare script. (In reply to comment #3) > actually you can change the report design handle in the onPrepare script. how so? Created attachment 168316 [details]
Sample of switching the dataset through script
In the design, there are two data set: dataSet_A and dataSet_B. Data Set A queries all the employees with job title as "Sales Rep". Data Set B queries the employees which jot title is not "Sales Rep".
There is also a boolean parameter "IsSalesRep". If this parameter value is TRUE, the report design uses the DataSet_A, if it is false the design uses the DataSet_B.
just what I was looking for.... Thankyou very much! |