Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Prevent record deactivation from list view display

$
0
0

Hello,

I have a Custom entity. I am using the below JScript to prevent deactivation of record. It is working fine on Form level Deactivate button. But it is not working on from list view level Deactivate button. How to make it work on this list view?

function preventDeactivate(econtext) {
var eventArgs = econtext.getEventArgs();
if (eventArgs.getSaveMode() == 5) {
eventArgs.preventDefault();
}
}


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images