I am building a form that has buttons on it to open the GE Add medications/problems/allergies windows. After the new window is closed, how can I tell my form to reload the data without closing and reopening the form. I have data display fields that call functions that look through the medications/allergy/problems list and state if the patient needs something added to their chart and they aren't currently updating unless the form is reopened.
I have been trying to refresh data display and have been unsuccessful so far. The only way I can get to to refresh is going to a different form and coming back or a refresh button, when clicked runs the function and updates the data display.
All you should have to do is pass one of the functions that evaluates continuously to the function in the data display as a parameter, if the data display is
{functionDisplayMedications()}
Change it to
{functionDisplayMedications(MEDS_AFTER("delimited"))}
and it will refresh when there any changes to medications.
Thank you, that worked. I had to send in Medications, OBS and Allergies in order for it to all come together. That is not exactly a pretty solution but it seems to do the job.
Is there a list of functions that continually evaluate?
There may be a more efficient way to run the code, if you want to post your solution I can take a look and maybe make some suggestions.
In VFE, if you go to the help menu and choose data symbols reference you can browse a list of data symbols. Under each one you will find a heading that says "When to Evaluate" and that will indicate if it evaluates continuously.