- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
These files are a tremendous help! Thank you very much again! I just tested, and everything works. I corrected what looked like a couple of typos in the folder .js:
var vDataStamp = event.target.xfa.resolveNode("topmostSubform[0].Page1[0].dateStamp[0]").rawValue.toString();
var vFirstName = event.target.xfa.resolveNode("topmostSubform[0].Page1[0].First_Name[0]").rawValue.toString();
var vInitial = event.target.xfa.resolveNode("topmostSubform[0].Page1[0].MI[0]").rawValue.toString();
var vLastName = event.target.xfa.resolveNode("topmostSubform[0].Page1[0].Last_Name[0]").rawValue.toString();
var vPath = "/c/HSSSave/" + vDataStamp + " HSS Foot & Ankle for Patient " + vFirstName + " " + vInitial + " " + vLastName + ".pdf";
changing DataStamp to DateStamp wherever that occurred.
How does your DateStamp field work? Does it grab the date which the user enters? Or the system date? And can I go ahead and change the format to
Date and Time?
And about your suggestion of giving the user some feedback about the saving, with a button highlight. In the button object properties, I see that there are Highlighting and Rollover Caption and Down Caption. These seem to fire on click. But how do we first determine that the file has actually been saved, and then show the user some message that the file has been saved? You mention creating another button. How would that work?
The only other thing that remains to be done is to create a "hidden" button next to MRN# that a staff member can click to email the form after assigning it a research number. I'll use the script at the bottom of the form in that email button for this purpose. And I think I know how to make the button "hidden" by using a white border and white fill.
I experimented with the Save path, too. "/c/inetpub/wwwroot/HSS/" works, but would a path with spaces work also (like "/c/Documents and Settings/All Users/HSS/")?
Niall, I can't thank you enough. I'm sure everyone at the hospital will breathe a deep sigh of relief that the form finally works. Someone told me this has been languishing for about a year now. I got involved about two weeks ago, at the tail end. But without your help, the form would still be incomplete.
If there's anything I can do in return, please let me know.
Views
Replies
Total Likes