Re: [qooxdoo-devel] remote tables again: adding rows, reloadData and setValue

2009-05-18 Thread Alexander Back
Hi Michael, On Friday 15 May 2009 Michael Helwig wrote: > [CODE] > var listener1 = remoteModel.addListener("dataChanged", function() { > //Listener must be removed to avoid regress > this.removeListenerById(listener1); > > //then we add the second listener now that the first event is gone >

Re: [qooxdoo-devel] remote tables again: adding rows, reloadData and setValue

2009-05-15 Thread Michael Helwig
Hi, I have finally managed to deal with this problem. I figured out that a reload fires two dataChanged events: one is fired after retrieving the current number of rows, the second after reloading the data. So I added two event listeners to the remote model, the second of which calls my method

[qooxdoo-devel] remote tables again: adding rows, reloadData and setValue

2009-05-13 Thread Michael Helwig
Hi, here comes my next question on the remote tables. I'm working on a possibility for the user to edit the table data on the user interface without immediately applying it to the database. This is, of course, no problem when only cell data is entered. But it is problematic if a user wants to ad