I have a form that I created that has an action button that is only partially working. It is an action button that is used to set values for a check box, a drop down and then another action button. This button always sets the value for the drop down and other action button, but it does not set the value for the check box. What is even weirder is when I use this form in an empty update where this is the only form in the update it works great but when I use it in a CCC-V8 update the button never sets the value for the check box. What am I missing? Can anyone give me some pointers on where to look?
Thanks!
Rebecca Higdon
Department of Family Medicine
UT Graduate School of Medicine
Knoxville, TN 37920
Is it an obsterm or a document variable that you are trying to set with the action button?
I recommend running a MEL trace. Several issues could cause the issue you are describing to include missing variable (trace will show 'couldn't find the data symbol'), and external code 'hijacking' the value. Run the trace with the form in question by itself in the update first to rule out errors in that form, and again with the CCC forms/forms it will be used with. Be certain to delete the trace file before starting a new one or the file will grow quite large quickly (each trace is appended to the same file).
The former is the most common failure of action buttons, however, when CCC forms are utilized and users attempt to 'share' data with them, the latter is typically true. Since the code in CCC forms is rather cryptic, it can be difficult to follow in a trace, so narrowing it down will take some time, patience, and perseverance.
One other common issue is the introduction of a MEL error. Some MEL errors halt all code execution, forcing a 'reset' of anything in the 'execution stack'. For those errors, the MEL trace will be full of 'trigger completed' statements following the error notation.
Due to your description of the symptoms, I suspect your issue is either a MEL Error or the CCC forms are sharing the variable. You can start to pinpoint the issue by evaluating if the 'check box' value is being shared by the CCC forms and running a MEL Trace. Good Luck!