Hi everyone,
after a row will be left I send the data set (row) via getDataAtRow()
to a Database. This works fine for text, boolean and date values if the row will be left by pressing the Up
or Down
key. Changes of numeric values I get only if I first move to another column in the row and after this to the next or previous row. The same I have to do for text, numeric and date values if the row will be left with the PageUp/PageDown
key or a mouse click in any other row. If not I get in this cases with getDataAtRow()
only the old (last changed) value. Here is a demo.
This workaround catches the new value with the afterSetDataAtCell()
hook and replaces the last changed value before I send the data set to the DB. This works now for numeric values too, but still not if I leave the row with PageUp
, PageDown
or a mouse click. Obviously I get in this cases the new values from afterSetDataAtCell()
not soon enough to replace the old value. If anyone has a good idea for a solution, I would be interested