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 add rows. There is a removeRow function for removing rows from the interface, but there is no corresponding addRow function (at least I haven't found one). Adding rows in the remote table therefore requires adding these rows to the database and reloading the data afterwards, which dismisses what a user has alread entered in the interface if it has not been saved to the database. To cope with this problem, my plan was to: 1. Storing changed cell data in an array containing all the necessary information 2. add rows to the table by adding rows to the database via a php/mysql call and reloading the table for making the additional rows visible in the interface 3. re-applying the changes made by the user that have been stored via setValue
The problem is the timing: ff I immediately call the setValue function after reloadData, the reload seems to take longer than the setValue function and the re-applied data gets overwritten by what is delivered by reloadData. (Everything works if I put something in between these calls which takes some time, i.e. an alert window - this is why I suspect the timing to be the problem) So my question: Is there a way to wait for a reload to finish? I thought of adding a return value to reloadData but I'm not sure if that would work, since reloadData calls other function (e.g., requests the row count). I will have a closer look at the source tomorrow - maybe someone has a hint for that. Cheers, Michael ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
