Hoping someone has run into this before. So here's the situation, I'm designing in an Encounter form in VFE with a button/action that needs to open a specific Entry Template. Previously we were using CQIC forms but we are now moving away from them so the "custom" MEL functions don't work anymore.
Using Entry-CCC and want to open/select the "Bright Futures-Initial Newborn Visit" form.
{ADD_FORM_COMP("Enterprise\Physiatry", "PM - Lumbar Transforaminal", "AFTER_CURRENT", "OPEN")}
Here is an example of the MEL used in an action button to open another form
"Enterprise\Physiatry" - location of the form to be opened
"PM - Lumbar Transforaminal" - name of the form to be opened
"AFTER_CURRENT" - where you want it to open
syntax
ADD_FORM_COMP(folderpath, name, insert_position, OPEN, label)
arguments
folderpath
A string specifying the location of the form to be added.
name
The name of the form to be added.
insert position
Optional. Position in the forms list where the new form should be added. Acceptable values for insert point are:
AT_END (default if nothing is specified)
AFTER_CURRENT
AT_BEGINNING
BEFORE_CURRENT
Ordinal number
Note. An ordinal number is the numerical order in which to insert the form, moving other forms down in the list. If an ordinal number is used, the form is inserted into that numerical position in the update. For example, if you had 1,2,3 in the update and you inserted a form with a position argument of 2, it would become 2, 2 would become 3 and 3 would become 4.If the number used is larger than the number of forms in the update, then the form is inserted at the end. Any unrecognizable value for the insert position will be interpreted as AT_END
OPEN
Optional. Opens the form after inserting it into the update.
label
Optional. Displays a label with the form name when the form is referenced in the update. This label would appear in the left-hand list of forms along with the default form name.