Hi All,
On the button click I wrote below code:
function ActionApprove() {
try {
debugger;
Xrm.Page.getAttribute("statecode").setValue(1);
Xrm.Page.getAttribute("statuscode").setValue(2);
Xrm.Page.data.entity.save();
Xrm.Page.data.refresh();
} catch (e) {
alert("Error in ActionApprove: " + e);
}
}
But it do nothing. What is wrong with it. Please help.
Thanks
Regards,
Abdul
*This post is locked for comments