Hi guys,
i have 2 functions in same webresource and i pass the Execution Context in function 1 and do some actions and i call the function 2 from function 1 and am also pass the Execution Context in function 2..but execution context preventdefault is not working..
my Javascript like..
function preventAutoSave(executionContext)
{
var eventArgs = executionContext.getEventArgs();
if (eventArgs.getSaveMode() == 70)
{
eventArgs.preventDefault();
}else{
compare(eventArgs);
}
}
function compare(eventArgs)
{
..............
...............
.................
if(eventArgs.getSaveMode() == 1){
eventArgs.preventDefault();
}
}
i wrote i like this but record is save..i want to dont save the record and i want to know how to pass executionContext from one function to another
*This post is locked for comments