Good Day Folks!!!!
I am looking to dynamically be able to jump to one of the 5 different tabs in my form. I am able to make an action button work by hardcoding the page tab name, but I am looking to know what tab I am currently on so if I move to a different form in my encounter packet, that when I return to my form that I am automatically returned to where I left off.
EXAMPLE: current form = CONSULT, with tabs A, B, C, D; currently working on Tab C. I then go to the Physical Exam form to edit something. When I return to the CONSULT form, I want to automatically return to Tab C.
Anybody ever done something like this? My thoughts were to have a function in the MEL workspace to: JUMP_TO_TAB(DOCUMENT.CURRENT_TAB), where DOCUMENT.CURRENT_TAB would be set (somehow) on each of the independent form pages. So upon returning this form, that this JUMP_TO... would return me to where I left off.
Is this even possible?
No reliable way to do this, as there is no form feedback (event) that I know of that returns what tab (page) you are on. You could define a global variable DOCUMENT.RETURN_TO_TAB, but to assign it, the user would have to click a button (for example) every time when leaving form CONSULT to jump to form EXAM (button updates global variable). Since users can just click on a form or [Next Form] or [Previous Form] (or multiple other navigation schemas) - you cannot be assured that DOCUMENT.RETURN_TO_TAB will contain the most current/correct Tab name to return to the calling form tab. I would be very interested if someone has a solution to this - Beverly
Simple solution is to choose an unused obs term, of which there are many. Or use a document variable that is shared between forms.
Yes. I was leaning towards a document variable and it can be set thru the use of a button. I was just looking to make it more invisible to the user and not requiring them to "press yet another button".
how about a data display? once you jump to a tab, it overwrites a hidden document variable or obsterm and the current value shows up in the data display?
Thinking about this... if you put a page close handler into EVERY form in the encounter, that writes its own form name into the global variable or an obsterm, then the page close handler functions could keep it updated. Still seems a bit of a headache to me... Then if the curren form has a return button on it, it could check the global variable or obsterm to know what form to jump back to. Still no way to know what "tab" you were on before. Or... just make this all a user training issue, have the few forms you want to jump back and forth among, have appropriate jumper buttons that keep things updated correctly so long as the user only clicks those buttons to navigate to another form.... - keep it simple where you can.. 🙂 - Beverly