Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

<html><head><title>onDelete Example 3</title>
<script type="text/javascript">
var userAction;
function setUserAction(deleteorremove){ 
userAction = deleteorremove.useraction;
return "[{\"action\":\"validate\",\"result\":\"true\"}]";
}
function onPostDeleteJSON(){
if (userAction=='delete'){
window.location = "melt://showAlert:Delete from CRM useraction:"+ userAction;
return "[{\"action\":\"validate\",\"result\":\"false\"}]";
}else if (userAction=='remove'){
window.location = "melt://showAlert:Remove from device useraction:"+ userAction;
return "[{\"action\":\"validate\",\"result\":\"false\"}]";
}
}
</script></head><body></Body></html>
  • No labels