Hi Dan, Dan Trif wrote: > On the listener I get a value from the currently selected row and do > other things ... > > Using qooxdoo version 0.7.2 everythingh worked fine but when I switched > to 0.7.3 I found out that the method > removeRows(Integer |startIndex|, Integer |howMany|) from > qx.ui.table.model.Simple sets the selection at "rowCount" index ( which > does not exist anymore) and triggers the changeSelection event so I'm > trying to get the value for the deleted row and get the exception > "[Exception... "'Error: this._rowArr out of bounds:...." > > ... so I think is a problem with events or selection model Could you please send me a the code snippet in which the problem occurs? This could be helpful in tackling down the problem.
My first idea is that when you remove the last n rows from the table the index is indeed wrong. For example you have [ 0, 1, 2, 3, 4 ] as table row array and you remove the last two rows -> removeRows(3, 2) The splice method will return you [ 3, 4 ] (the removed part of the array) and leaves the table row array with the content of [ 0, 1, 2 ]. The startIndex (in your case 3) delivered with the "EVENT_TYPE_META_DATA_CHANGED" event is invalid in this case. But you wrote about the "changeSelection" event. This is an event without data provided. How do you access the rowIndex in your event handler method? cheers, Alex -- Alexander Back Core Development::Webtechnologies [EMAIL PROTECTED] fon +49 721 91374 8047 http://www.1und1.de 1&1 Internet AG Ernst-Frey Str. 9 76135 Karlsruhe Amtsgericht Montabaur HRB 6484 Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger, Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Achim Weiss Aufsichtsratsvorsitzender: Michael Scheeren ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel