Community
Participate
Working Groups
The test case: package client; // RUI Handler // // handler testRecord type RUIhandler{initialUI =[ ], onConstructionFunction = start, cssFile = "css/testIR.css", title = "testRecord"} data any[]; function start() data = [ new myRec { field1 = "Row 1, Column 1", field2 = "Row 1, Column 2"}, new myRec { field1 = "Row 2, Column 1", field2 = "Row 2, Column 2"} ]; // Both will cause runtime error. syslib.writeStdout(data[1].field1); syslib.writeStdout((data[1] as myRec).field1); end end Record myRec field1 String; field2 String; end Ideally, data[1].field1 and data[1]["field1"] should be supported because DataGrid depends on it.
Ji Yong, Both of these types of dynamic access work for me: syslib.writeStdout(data[1].field1); syslib.writeStdout(data[1]["field2"]);
The second one syslib.writeStdout((data[1] as myRec).field1); still has runtime error. The runtime function egl.convertAnyToRefType returns null in this test case. This error may be related to bug 360498
Resolved when resolving bug 359218
Verified in build 201111160901