AW 2.5 and setCurrentRow and setScrollTop
I just upgraded my application from AW 2.0.2 to AW 2.5 and so far I've only run into one problem. Several of the screens in the application will display an iframe containing a grid and the grid needs to be displayed with a certain row selected and in the middle of the visible section of the grid and the first column selected. Through trial and error I came up with code such as the following example that worked just fine in AW 2.0.2:
That same code generates an error in AW 2.5: "nextSibling is null or not an object, line 92, char 2755". I found that if I commented out the setCurrentRow and setScrollTop function calls that the error went away (but the correct row was no longer selected and displayed). Is there a different way to accomplish the same goal as the above code that is more compatible with AW 2.5?
obj.setRowCount(7263);
obj.setColumnCount(16);
obj.setCellEditable(true);
obj.setCellModel(table);
obj.setSelectedRows([5795]);
obj.setCurrentRow(5795);
obj.setScrollTop(104094);
obj.setScrollLeft(0);
obj.setSelectedColumns([0]);
That same code generates an error in AW 2.5: "nextSibling is null or not an object, line 92, char 2755". I found that if I commented out the setCurrentRow and setScrollTop function calls that the error went away (but the correct row was no longer selected and displayed). Is there a different way to accomplish the same goal as the above code that is more compatible with AW 2.5?
Randall Severy
December 7,