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);
Bu yazıyı ilk değerlendiren siz olun
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5