When I save any record in from editor field, an auto generated ID will create along with saved record in table. Now I want to use that ID (auto generated) to map it with subID in some other table.
For this I need to override OK button in the editor. so how can I override OK button so that I can perform some action after it will save the record.
public void myOkBtn(){
if(isValid()){ //We need it since now we have pre-commit logic
/* pre-commit logic goes here */
if(this.commit()){
/* post-commit logic */
}
}
}
Also i just realize that since you’re using Editor window there is some pretty useful hooks (sorry didnt mensiond it’s earlier): postCommit() and preCommit()
It is even better since standart window-actions is ok for you.