On Sun, Dec 19, 2010 at 15:18, [email protected] <[email protected]>wrote:
> Hello,
>
> i try this to move some rows
>
> addEntrys :function() {
>
> this.table1.getSelectionModel().iterateSelection(function(row) {
> var d = [];
> d[0] = [];
> d[0][0]= this.table1.getTableModel().getValue(0, row);
> d[0][1]= this.table1.getTableModel().getValue(1, row);
> d[0][2]= this.table1.getTableModel().getValue(2, row);
> d[0][3]= this.table1.getTableModel().getValue(3, row);
> d[0][4]= this.table1.getTableModel().getValue(4, row);
> d[0][5]= this.table1.getTableModel().getValue(5, row);
> d[0][6]= this.table1.getTableModel().getValue(6, row);
> d[0][7]= this.table1.getTableModel().getValue(7, row);
> this.table2.getTableModel().addRows(d);
> this.table1.getTableModel().removeRows(row,1);
> }, this);
> },
>
> the rows moved but i get alwys some errors like this:
>
> Fehler: this.__selectedRangeArr[i] is undefined
> Quelldatei:
> http://localhost/test/qooxdoo/framework/source/class/qx/ui/table/selection/Model.js?nocache=0.651867912730448
> Zeile: 364
>
> What is wrong?
>
That error sounds like the iterateSelection() method is not happy with the
fact that you're removing the row while it's running. Try doing the
removeRows() call in a timeout.
Derrell
ps. Any chance you could use a more standard font and font size in your
postings? There's no reason for such a huge font. Besides looking
amateurish, it makes your postings difficult to read. Thanks.
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel