Notifications
Clear all
Topic starter
Hello,
Is there a way to automatically execute a MEL function when a form is loaded?
Thank you.
Nitish
Posted : December 11, 2012 3:08 am
From the GE "Creating Clinical Content" document available on GE's support site:
Here are some basic rules for evaluation: Evaluate on form open (!). If an expression starts with an exclamation point (!), the Centricity application evaluates the MEL expression when the user opens the page of the form containing the expression. In other words, any expressions preceded by ! are evaluated when the Centricity application draws the page on the screen. If a user redisplays a page, the Centricity application reevaluates the expression.
So, this code will run on form open
{! if gmed1<>"Yes" and gmed2<>"Yes" then document.quests="" else "" endif }
David Shower
OU Tulsa School of Community Medicine
Posted : December 11, 2012 6:28 am