CRM 4.0 Form.OnSave() causing an error when I am not even saving!
CRM 4.0 Form.OnSave() causing an error when I am not even saving!
-
Here's my scenario:
I have javascript in the Case.OnSave(). If I open a Case, then straight away click on the X to close it without saving I get an error. (a crash).
If I disable the Form.OnSave() event code, I do not have this problem.
Why is it running the OnSave()?
Alle besvarelser
-
Are you perhaps setting some values on the Case in the OnLoad-phase?
CRM beginner
-
I am hiding the resolve button in the OnLoad event. But this works...
-
have you tried the preview in the customization gui to get an error message?
-
Yes, I get an error.
My question is more "why is it happening when I am not saving?" rather than "why is it erroring?" though.
-
Because you have an open ended comment (/*...) somewhere else or some other clause terminating error that is spilling over you logical boundaries?
There is no reason to believe that your onSave function is being called out turn due to a Microsoft mistake...yet.
- Markeret som svar af
PGO01
13. februar 2009 17:04
-
-
Exactly right - I had commented out a bracket by mistake.
// }