Good Morning CHUGgers!!!
Got a quick question about VFE forms and an embedded Flowsheet within the form. I have a number of fields (date, a sequence number, and 3 entries fields) that I am pushing to the flowsheet using the selected date as the OBS date OBSNOW(obs, value, date). This functionality is working with one slight exception.
The embedded flowsheet does not update while I am in the open form. If I put the document On Hold and then re-open it, all of the values I entered now correctly show in the flowsheet. Additionally, if I navigate to a different form in the same document and then back this form, the flowsheet is refreshed.
How can I make the flowsheet update/refresh while I am in the form? Is there a ccc_refresh() or similar MEL function that would force a screen form refresh?
I am so close to wrapping this form up; just one small hurdle left. Any other ideas?
It is a long standing refresh issue with the EMR. You have two options:
1) If the form has more than one tab, use the 'JUMP_TO_TAB' data symbol to jump to a different tab, then back again. If the form does not have two or more tabs, consider adding a blank tab to accomplish the same. This is the preferred method.
2) Issue an open form command and 're-open' the form. This is not as preferred as it will execute all the code in the form again - needless in most cases.
For both options, you would want some control over when it refreshes (jumps or opens), so you will need to insert the code in a controlled execution. The easiest approach would be to place the code in a button that is used to record or, if said button does not exist, create a 'refresh' button to hold and execute the code. Alternatively, you could place the code in a watcher expression, however that approach often requires additional code to prevent it from firing inadvertently.
Hope this helps.