Bu sefer güzel bir ipucum var :)
Dynamics CRM içerisinde javascript kodu ile kaydetme işlemlerini crmForm.Save() veya
crmForm.SaveAndClose() komutlarından biriyle yapabilirsiniz.Eğer "event.Mode"'a bakarsaniz en son hangi olay fonksiyon çağrılmış bunu bulabilirsiniz. Eğer kod 1 geri dönüyorsa crmForm.Save() eğer 2 dönüyorsa crmForm.SaveAndClose() çalışmış demektir.Tabii ki geri dönen sadece bunlar değil aşağıdaki listede hangi fonksiyon çalışınca hangi kodun geri döneceğine bakabilirsiniz.
-----
I have a good tip :)
To call the save event from your javascript code you can use the javascript functions crmForm.Save(); and
crmForm.SaveAndClose(). By looking at the 'event.Mode' you can
determine which event was executed before. If the code is 1, then it is
a crmForm.Save(); or it is 2 for a crmForm.SaveAndClose(). There's only
one small issue. There can be other save events as well. Below is a list of save events with the corresponding javascript
functions to call.
Save
Code: 1
Function: crmForm.Save();
SaveAndClose
Code: 2
Function: crmForm.SaveAndClose();
Send
Code: 7
Function: send();
SaveAsCompleted
Code: 58
Function: SaveAsCompleted();
SaveAndNew
Code: 59
Function: crmForm.SubmitCrmForm(59, true, true, false);
ff076378-0501-4acf-ab85-c7495c006ee1|0|.0
Dynamics CRM
microsoft, dynamics, crm, 4.0, microsoft dynamics crm 4.0, javascipt code, javascript, onsave, event, save, saveandclose