Hello everyone,
I would like to create an app for some of my doctors, that allows them to use their iPhone to print PDF forms. For example, when in the OR, they need a specific form to collect some data. I want to have them open an app on their phone, enter the patient ID number or last name, then generate the PDF for printing via airprint.
To generate the PDF I plan on using Quick PDF templates from Klarisoft. A separate routine using QPDF, would load a blank version of the PDF form, fill in some fields then save the newly generated PDF form to disk with a file name that is random or has the patient ID in it. This new form should display to the user, where they can then choose to print.
I have attached an image of my first attempt of this app. I start with a browse, where the user is to enter a ID Number (MRN) if known, or a last name. This should produce one or two records of which the user is to select one. From here, I need to call the QPDF code to generate the blank PDF with data prefilled.
The first issue I have is I added a message statement to the "user clicked on row in browse" embed, to be sure I have the correct patient ID session value. I used the following:
Message(p_web.GSV('dem:ID_NO'))
The message is blank. So, I'm asking for advice...is this approach going to work? Any suggestions on better ways to do this?
Thanks,
Jeff King