hi, i have problem whit BindMgr, my solution is set reference on BindMgr to record :
Code:
record.bindMgr = this;
record.afterEdit = record.afterEdit.createSequence(this.afterEdit, record);
record.afterReject = record.afterReject.createSequence(this.afterReject, record);
record.afterCommit = record.afterCommit.createSequence(this.afterCommit, record);
and in handlers:
Code:
...
,afterEdit:function() {
var mgr = this.bindMgr; // mgr is stored in record
var id = mgr.idOf(this); // this is record
if(id) {
for(var p in mgr.bounds[id].components) {
if(mgr.bounds[id].components.hasOwnProperty(p)) {
var c = mgr.bounds[id].components[p];
mgr.callMethod('afterEdit', this, c);
}
}
}
} //eo function afterEdit
...
For me this solution working.