PDA

View Full Version : Tree grid reset modified records



niexx
7 Jun 2012, 11:18 PM
I am working with editable tree grid, and I want to save some modification of rows when I press button Save, and after that I want to reset Modified Records.

I retreve modified records with method

final List <Record> modified = store.getModifiedRecords ();

My problem is, when first time I modify data in my grid, then save it, it works. But when I modify some date after I pressed Save button first time, I want only those new modification to retrive and in those modification there can be that I edited same row for second time (first when I first press Save, and then I want to save it when I press Save button second time). But when I retrive getModifiedRecord it retrives all modification that were from start of the program.
so is there a way to reset this ModifiedRecords in store, so everytime I press button Save list modified will get only last list modified records, not all modification from start of program.

sven
8 Jun 2012, 1:15 AM
You will need to call commitChanges() after pressing the save button and your changes saved successfully.

niexx
8 Jun 2012, 2:53 AM
Thank you very much :)