Community
Participate
Working Groups
Build Identifier: 201110110900 DnD a DataGrid into a handler, run the handler in preview or deploy, then click the Column Header to sort the column, there will fire an error: [CRRUI1083E] An error occurred while the click browser event was being handled. [CRRUI2005E] A null reference cannot be used. [CRRUI2094E] Here are the EGL function calls leading to this error: Reproducible: Always
This is a JSGen problem. The generation for DataGrid.egl clickGrid function line 249 is wrong The EGL code is while(widget.class != "EglRuiDataGrid" &&(widget.getAttribute("column") as int) == 0) widget = widget.parent; end The generated js is var eze_compound_1 = false; eze_compound_1 = ((egl.checkNull(widget).getClass()) != "EglRuiDataGrid"); if (eze_compound_1) { eze_compound_1 = ((egl.eglx.lang.EInt32.ezeCast(widget.getAttribute("column"),false) == 0)); } while (eze_compound_1) { widget = egl.checkNull(widget).getParent(); } Here while (eze_compound_1) will always true because it only evaluated once. But actually, when widget changes, the while expression have to be evaluated again.
This defect is caused by the changes made in bug 357820
Resolve by bug 357820
*** Bug 360929 has been marked as a duplicate of this bug. ***
In preview mode. If you click the data items in the data grid. the column will be abnormal.
Comment 5 is another problem opened in bug 360615
Verified in 201110190921