PDA

View Full Version : Thread can be deleted



Kcarpenter
18 Oct 2010, 9:28 AM
Thread can be deleted.

jarrednicholls
18 Oct 2010, 10:06 AM
this.on('afteredit', this.updateDatabase, this);
// ...
updateDatabase: function(e) {
var r = e.record,
id = r.id, // assuming the "idProperty" of the Store/Reader is setup correctly
prop = r.get('someProperty');
}


Does that help?

Kcarpenter
18 Oct 2010, 10:09 AM
this.on('afteredit', this.updateDatabase, this);
// ...
updateDatabase: function(e) {
var r = e.record,
id = r.id, // assuming the "idProperty" of the Store/Reader is setup correctly
prop = r.get('someProperty');
}


Does that help?
This is exactly how I ended up doing it.
I should start taking smoke breaks when a problem gets the better of me :)

jarrednicholls
18 Oct 2010, 10:22 AM
No it's all good, I wanted to make sure you were referring to the ID of the record being edited. Since there are so many items passed to the afteredit handlers, they're encapsulated in one object parameter instead of a bunch of parameters to the callback function.