Summary:
The uri value in Image item has to be a special case for backward
compatibility work of bound data columns. In most case, this value can be just
a constant and do not need bound data columns. However, both DtE and Model do
not know whether the uri value is an _expression_ or a string constant.
The solution is that: used uri value to get the column binding
from BIRT.core.data.ExpressionUtil, if the _expression_ value in return column is
equal to the uri value. Do not create column binding. Otherwise, creates it.
Bugzilla Bug (s) Resolved: 136052.
Description:
1. Added CompatibleImageURIState for the
special case of image uri property.
2. Modified ExpressionState.
3. Fixed minor problems in
CompatibleMiscExpressionState.
4. Updated test cases.
Tests Description : Junit test.
Files Edited:
"/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/ExpressionState.java"
"/org.eclipse.birt.report.model/test/org/eclipse/birt/report/model/parser/input/Birt2_1_0Expr.xml"
"/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/CompatibleMiscExpressionState.java"
"/org.eclipse.birt.report.model/test/org/eclipse/birt/report/model/parser/golden/Birt2_1_0Expr_golden.xml"
"/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/CompatibleDataValueExprState.java"
"/org.eclipse.birt.report.model/test/org/eclipse/birt/report/model/parser/golden/CompatibleBirt2_1M5Expr_golden.xml"
Files Added:
"/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/CompatibleImageURIState.java"
Notes to Build Team:
Notes
to Developers:
Notes to QA:
Quotes
to Documentation:
Rick Lu
Actuate Software
Shanghai Center
Tel: (86)21-58826388
Fax: (86)21-58826002
Email: rlu@xxxxxxxxxxx