First let me apologize, coding is not my forte so if the issue isn't detailed enough please let me know I will provide as much info as needed.
Since we have upgraded to CPS 9.5 from 9.0, we have been having an issue with a VFE form. The issue is that when the particular form is edited in any way, an extra "/" is added to our "/par" variable. Resulting in it looking like this: "//par". This then causes the form to display all of the MEL code and messes with the format. I've tried researching but am lost so far. Has anyone experienced any issues such as this?
Edit: Here is a visual, step by step, of what I'm referring to. Paint still comes in handy every now and then
1
2
3
4
Is this a custom form you created? If it is, attach the source file for the form and I'll take a look at it and see if I can help!
schinn said:
Is this a custom form you created? If it is, attach the source file for the form and I'll take a look at it and see if I can help!
It's a custom form, but not one that I created. Trying to edit this to work with CPS 9.5 is my first time working with VFE or MEL code. I've been trying to wrap my head around it but it's been slow going thus far unfortunately. Finally, I figured an outside perspective could shine some light on the problem.
What is the easiest way to view the source code? I opened it in Notepad++ but notice there's a lot of giberish characters so I'm assuming it wasn't read correctly. Also there may be some sensitive information in there so I'd like to censor that first.
Thanks for your help. Very much appreciated.
Can you upload the .dlg file associated with the form to the forum so that we could take a look and maybe figure out the coding error?
Do you have VFE installed, and if so, are you able to open the form in VFE?
Thanks,
Chris
Yep.
For anyone interested, I was able to resolve this issue by removing the returns between lines and inserting the command "+HRET+" between each line.
For example, before the code for a button looked like this:
{CFMT(LASTOBSVALUE("EF MUGA"), "", "1. Normal Bruce protocol exercise tolerance test.
2. Normal left ventricular size and function with a calculated ejection fraction of ", "", "%.
3. Myocardial scintigraphy is normal without evidence for previous myocardial infarction or reversible ischemia.")}
I then changed each to read like this:
{CFMT(LASTOBSVALUE("EF MUGA"), "", "1. Normal Bruce protocol exercise tolerance test.” + HRET + “2. Normal left ventricular size and function with a calculated ejection fraction of ", "", "%.” + HRET + “3. Myocardial scintigraphy is normal without evidence for previous myocardial infarction or reversible ischemia.")}
After making this change to every button within the form, the /par went away for good.