11.07.2018, 02:46 | #1 |
Участник
|
wookiecrm: Javascript : How to find out which action raised the OnSave event in a Form
Источник: //wookiecrm.typepad.com/wookies_crm_corner/2009/07/javascript-how-to-find-out-which-action-raised-the-onsave-event-in-a-form.html
============== Recently, I was asked by a customer if it was possible to execute some javascript when an Opportunity is marked as won. As you all know, the value of statecode is in fact on a separate dialog box and technically, there is no way to capture the event. However, this is another way around it, and that is the use the event.Mode value to determine which action raised the OnSave event in the first place. Here is the list of events:
if(event.Mode == 5) //deactivationIf you dont know which action triggered the event, you can use the following line in the onSave event of the form to find out : alert(event.Mode); Источник: //wookiecrm.typepad.com/wookies_crm_corner/2009/07/javascript-how-to-find-out-which-action-raised-the-onsave-event-in-a-form.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|