IsDirty false positive.
-
07 Mei 2012 15:14
I'm trying to figure out why my IsDirty() == true when nothing is changing on the form. I open the form for an existing record , immediately close the record and get the 'Changes have not be saved' message.<o:p></o:p>
Onload Functions are Enabled == False.<o:p></o:p>
OnChange Enabled == true for some customer fields.<o:p></o:p>
Is there a way to figure out what is causing the IsDirty() to return true?<o:p></o:p>
Thanks,<o:p></o:p>
-John<o:p></o:p>
John Ross
Semua Balasan
-
07 Mei 2012 15:33ModeratorAre you sure there is no code updating crm fields ?? it seems there is some code which is firing on update mode, check form onload code.
Mahain : Check My Blog
Follow me on Twitter
Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question. -
07 Mei 2012 15:45
I disabled the form's onload event - So nothing should be firing when the form loads - right? There are some onchange events but I'm not changing anything only opening and closing the form.
John Ross
-
07 Mei 2012 15:54Moderator
Hi,
Check this post http://mscrm-srinath.blogspot.in/2012/01/microsoft-dynamics-crm-2011-your.html
it will help you to get changed field
Mahain : Check My Blog
Follow me on Twitter
Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.- Disarankan sebagai Jawaban oleh Mahender PalMVP, Moderator 07 Mei 2012 15:54
- Ditandai sebagai Jawaban oleh Johnny Ross 07 Mei 2012 19:25