Hello,
My goal is to update a non-editable cell value once a row gets saved.
This is for a Row Editable Grid (http://www.sencha.com/examples/#Exam...oweditablegrid)
This is the code I am trying to get to compile (snippet posted by jtaekema here: http://www.sencha.com/forum/showthread.php?199387-Gxt3-store.getModifiedRecords()-not-actually-returning-modified-records), but having trouble with it:
Replaced X with Staff (which is the type that I am using for my store):
Code:
Collection<X> modified = new ArrayList<X>();
for (Store<X>.Record record : store.getModifiedRecords()) {
X model = record.getModel();
for (Change<X, ?> change : record.getChanges()) {
change.modify(model);
}
modified.add(model);
}
I have a compilation error for the following line:
Code:
for(Store<Staff>.Record record : store.getModifiedRecords()) {
Error states:
Type mismatch: cannot convert from element type Store<Staff>.Record to Store
Any idea why?
If you have another way of getting the changed cell/value so I can apply the changes to a non-editable cell, please let me know.
Thank you.