| Summary: | Setting data to the DataGrid component throws exception - egl.eglx.lang.TypeCastException is not a constructor | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | fahua jin <jinfahua> | ||||||
| Component: | EDT | Assignee: | Scott Greer <greer> | ||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||
| Severity: | blocker | ||||||||
| Priority: | P1 | CC: | carrollk, chenzhh, hjiyong, jqian, svihovec | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
fahua jin
Created attachment 204923 [details]
The sample EGL file.
As far as I can tell, it is not possible to assign a record[] to an any[] in JavaScript:
recordArr recordName[] = new recordName[];
record1 recordName = new recordName;
record1.field1 = "aaaa";
record1.field2 = "aaaa";
recordArr.appendElement(record1);
var1 any[] = recordArr as any[];
This gives the same exception, but does not involve the usage of DataGrid.
It does not seem that there is a workaround, so I am setting this to Blocker, since it means that DataGrid is unusable.
Created attachment 204983 [details]
A temporary patch, need scott's review
Hi Scott,
I commit the temporary fix to get over this issue.
The change only affects ArrayType conversion to any ArrayType, I guess the fix won't affect other parts.
You may want to review it and make some changes later when you're back from vacation.
Thanks.
Reviewed the fix with Ji Yong...looks good. Reviewed by Scott. Verified in 0.7.0.v201110180903 |