Project: Birt
Bug 221457 Data type checking for concatenated expression is wrong.
Reported: 2008-03-05 02:25:12 | Status: verified fixed

If user inputs an expression like data["year"]+" Q"+data["quarter"], chart builder will treat it as Linear type. Although data["year"] and data["quarter"] are both linear type, the concatenated expression should be Text type. So, chart builder should check if there's string in the expression, beside of checking data type of bindings.

Files changed in fix:
chart/org.eclipse.birt.chart.reportitem.ui/src/org/eclipse/birt/chart/reportitem/ui/ReportDataServiceProvider.java chart/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/ChartReportItemUtil.java chart/org.eclipse.birt.chart.tests/src/org/eclipse/birt/chart/tests/engine/util/ChartUtilTest.java