Community
Participate
Working Groups
Description: Exception occurs when preview a crosstab include a filter[1102] Build number: 2.2.0.v20070418-0630 Steps to reproduce: 1, Specify a filter on the cross tab such as row["PRODUCTTYPE"] equals to "Baby" 2, Preview the results Expected result: All the Baby Products are shown Actual result: Exception occurs Error log: org.eclipse.birt.report.service.api.ReportServiceException: Error happened while running the report; nested exception is: java.lang.ClassCastException: org.eclipse.birt.report.model.api.FilterConditionHandle org.eclipse.birt.report.item.crosstab.core.re.CrosstabQueryHelper.addFilter(CrosstabQueryHelper.java:368) org.eclipse.birt.report.item.crosstab.core.re.CrosstabQueryHelper.buildQuery(CrosstabQueryHelper.java:167) org.eclipse.birt.report.item.crosstab.core.re.CrosstabReportItemQuery.createReportQueries(CrosstabReportItemQuery.java:80) org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder$QueryBuilderVisitor.visitExtendedItem(ReportQueryBuilder.java:435) org.eclipse.birt.report.engine.ir.ExtendedItemDesign.accept(ExtendedItemDesign.java:37) org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder.build(ReportQueryBuilder.java:241) ...
Change to use structure handle in the CrosstabQueryHelper. After made this change please assign to DtE to fix the NPE.
fixed in crosstab query helper, transfer to Dte for further fixing.
If I set the filter on PRODUCT_TYPE Group leve, should I use the filter like that further: dimension["PRODCUT"]["PRODUCT_TYPE"] equals to "Baby"
Fix the problem in Data. Furthermore, in GUI, the reference to a cube column binding should be data["bindingName"] rather than row["bindingName"]. Reassign the bug to GUI for more corrections.
How can gui know if we're referring a cube binding or none-cube binding?
The algorithm should similar to UI's creation of level reference expression dimension["dimName"]["lvlName"] and measure reference expression measure["measureName"]. The difference is that the prefix would be "data".
Can dte or model provide a api to generate the expression? That's really the thing GUI can know. Thanks
Moving to rc1 for blocking by dependencies of model.
The api is already in ExpressionUtil in core.
Fixed it.
Failed test - With May 17 build, I still see the issue.
There are two issues here in May 17 build. (1) UI first needs to make sure the right expression is generated i.e data["Year"] is generated in filter instead of row["Year"] (2) Data Engine - Even if I change the expression to data["Year"] manually, it still fails.
I tested on the latest build, the dimension["PRODUCT"]["PRODUCT_TYPE"] works well, but the data["PRODUCT_TYPE"] failed
Yes, gui generates the right expression. Assign to DTE for item 2 of Rima.(In reply to comment #19)(In reply to comment #13) > I tested on the latest build, the dimension["PRODUCT"]["PRODUCT_TYPE"] works > well, but the data["PRODUCT_TYPE"] failed >
This bug is fixed in May 17 so will be ok for May 18 build.
Verified on v20070601 build closed and regards~