注意 :ExecutionObj为传递的参数,在表单事件上把将执行上下文作为第一个参数传选上
实例:
function formOnsave(prmContext,lookUpControl, LookUpContent) {
if(prmContext.getEventArgs().getSaveMode()==1);
{
document.execCommand('Refresh');
保存
}
}
1、保存
ExecutionObj.getEventArgs().getSaveMode()==1
2、保存并关闭
ExecutionObj.getEventArgs().getSaveMode()==2
3、保存并新建
ExecutionObj.getEventArgs().getSaveMode()==59
Entity | Event Mode | Value |
All | Save | 1 |
All | Save and Close | 2 |
All | Save and New | 59 |
Activities | Save as Completed | 58 |
All | Deactivate | 5 |
All | Reactivate | 6 |
User or Team owned entities | Assign | 47 |
| Send | 7 |
Lead | Qualify | 16 |
Lead | Disqualify | 15 |