I'm wanting to add a text comp and close my form with an action button (runprocess) using useryesno. Click "no" and nothing happens, which is correct. Click "yes" and my text comp is added, but the form does not close. Can someone please point out the errors of my ways?
{if useryesno (
"You are about to set the Deep Venous Duplex Worksheet" + HRET + HRET + "Do you have all the information input in the form you want to appear on the worksheet?" + HRET + HRET + "Click YES to set your worksheet or NO to go back to the form.")=="Yes" then ADD_TEXT_COMP("Enterprise\GMIS", "DVT", "") + closepage("TRUE") else closepage("FALSE") return (FALSE) endif}
closepage() controls whether or not the user can close the page based on some condition, but does not actually close the form. i don't believe there is a MEL utiility that will actually close the form.
If you happen to have another form in the update, you could add your text component and call the open_form_comp() function to open another form. As long as your closepage conditions were met on the originating form the second form would open, causing the original one to close.
Paul Atkinson said:
closepage() controls whether or not the user can close the page based on some condition, but does not actually close the form. i don't believe there is a MEL utiility that will actually close the form.
What about using numtoascii to fire the Esc key sequence?