Good afternoon,
Is there a way that I could add a button that opens a window similar to a pop-up, with a Dynamic List Box? Something similar like CCC CPOE View Protocol Button.
Thank you in advance for your help.
Im not sure that I have seen the View Protocol Button in the CCC CPOE form, but here is what you can do with popup boxes. If you are juts displaying information (like in protocols) that should be dynamic, you can create a function that changes the popup based on patient info, and then have the button run the function
{fn PopUp(){
local varList = ""
if PATIENT_AGE()<18 then
varList = "text for your dynamic list can be made here"
userok("Please check the following protocols for children: " + varList)
else
varList = "text for your dynamic list can be made here"
userok("Please check the following protocols for adults" + varList)
endif
}}
this can be as complex and involved as you want, but that is how I would do a pop-up with dynamic text. Please let me know if you have any questions, or if you can give us some more details on what you want to do with this exactly. ^_^
Unfortunately I think that you are out of luck for having the UI element in the popup box. As dcarpenter was discussing userok() or useryesno() if you need feedback are you two options for a pop up box. You can have the popup display dynamic data based on a selection on the form that called the popup, but you can't have a form element on the popup box itself -- other than a simple set of "yes" and "no" buttons.
I wish you could do what you looking to do!
bhoover hit the nail on the head. as of now, we can only display a pop up with text, or at the most, a yes,no button for responding to a single question. To get around this, you could build a form/tab that will display the protocols in group form, and then have the popup say:
"The following protocols are now due:"
<List of protocols>
"Would you like to review the protocols now?"
[Yes] [No]
And if the user clicks yes, they are taken to the form with the detailed protocols section.
Now if we do eventually go to more HTML forms, then you can have fancy stuff like a pop-up with a listbox inside it. ^_^