blex
5 Jul 2007, 9:54 PM
I have seen similar posts but not quite the issue I'm having:
I have a grid that can have multiple edits, inserts.
When a save button is pressed these changes are sent to the server and a list of success ids are returned.
These are then committed, the ones with errors are not, and the user has a chance to correct the problem.
However deletes happen by selecting a row and pressing delete.
The delete succeeds and when the success returns the row is removed.
HOWEVER, if an insert occurred in the Grid and then I delete that row ds.getById(id) returns undefined. I have traced with firebug and the id is valid and the record id is id. Yet the function is not returning the record.
So not sure what to do.
I have a grid that can have multiple edits, inserts.
When a save button is pressed these changes are sent to the server and a list of success ids are returned.
These are then committed, the ones with errors are not, and the user has a chance to correct the problem.
However deletes happen by selecting a row and pressing delete.
The delete succeeds and when the success returns the row is removed.
HOWEVER, if an insert occurred in the Grid and then I delete that row ds.getById(id) returns undefined. I have traced with firebug and the id is valid and the record id is id. Yet the function is not returning the record.
So not sure what to do.