Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[birt-dev]CheckIn: Fix Bugzilla Bug 135790, 136076, 136273 --- ClassCastException in RowData., [regression] Java based scripting -> getData of ICellInstance does not work properly., Java based scripting -> ReportElementInstance.getNamedExpressionValue

Title: [birt-dev]CheckIn: Fix Bugzilla Bug 135790, 136076, 136273 --- ClassCastException in RowData., [regression] Java based scripting -> getData of ICellInstance does not work properly., Java based scripting -> ReportElementInstance.getNamedExpressionValue

Summary 
1. Add getDataRow to all report items. If the report item has data-binding, return the dataRow of it, return NULL.
2. IDataRow has following methods:
   Int getColumnCount() return the column count in the dataRow.
   Object getColumnValue(string name) get the value of a column.
   String getColumnName(int index) get the name of the column.

Bugzilla Bug (s) Resolved:
Fix Bugzilla Bugs:
135790 -- ClassCastException in RowData.
136076 -- [regression] Java based scripting -> getData of ICellInstance  does not work properly.
136273 -- Java based scripting -> ReportElementInstance.getNamedExpressionValue does not work properly.

Description:
Why:
Many interface has been changed.

Fix:
Fixed.
 
Test Description:
Unit Test, Manual Test
 
Files Edited:
"/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/CellScriptExecutor.java"
"/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/parser/EngineIRVisitor.java"
"/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/script/instance/IRowInstance.java"
"/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/TableItemExecutor.java"
"/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/RowData.java"
"/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ListingElementExecutor.java"
"/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/ElementUtil.java"
"/org.eclipse.birt.report.engine/test/org/eclipse/birt/report/engine/api/script/instance/InstanceTest.java"
"/org.eclipse.birt.report.engine/test/org/eclipse/birt/report/engine/api/script/RowDataTest.java"
"/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/script/instance/ICellInstance.java"
"/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/instance/RowInstance.java"
"/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/GridItemExecutor.java"
"/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/RowScriptExecutor.java"
"/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/instance/ReportElementInstance.java"

"/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/script/instance/IReportElementInstance.java"
"/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/instance/CellInstance.java"
"/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/script/IRowData.java"
"/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ListItemExecutor.java"

Files Added:

Notes to Build Team:
 
Notes to Developers:

Notes to QA:
 
Quotes to Documentation:


-Wei Zhao




Back to the top