I am creating a form to be used for patient care,
I have multiple pages, the first is an information page, second is an evaluation page, the third is a treatment page.
I am hoping to add a drop down menu (Add New Page) with the following in it:
1. Treatment Note
2. Discharge Summary
3. Treatment Order
4. Progress Note
Each of the selections corresponds to a specific page layout.
ie: 1. Vitals, signature, etc.
2. Previous information compared to current status
3. Ordering equipment etc.
4. Updating referral source.
I am new to this so any help is appreciated, assume I know very little to begin with so specifics on how to create your recommendations are greatly appreciated.
Cheers
Views
Replies
Total Likes
The attached contains a drop-down that sets focus on a text field on the applicable page. The effect is to navigate to the page. The exit event looks like this...
//form1.page1.subform1.pageSelection::exit - (JavaScript, client)
switch (this.rawValue) {
case "Treatment Note":
xfa.host.setFocus(form1.page2.subform1.someField);
break;
case "Discharge Summary":
xfa.host.setFocus(form1.page3.subform1.someField);
break;
case "Treatment Order":
xfa.host.setFocus(form1.page4.subform1.someField);
break;
case "Progress Note":
xfa.host.setFocus(form1.page5.subform1.someField);
break;
default:
break;
}
There are a variety of ways this could be accomplished.
Steve
Views
Replies
Total Likes
Thank you but I think you are describing to a page, what I am looking to do is ADD a page in the end user ie if I need to discharge the patient I add a discharge note, or if I want to see the patient again I can add a new treatment note.
Any thoughts?
Views
Replies
Total Likes
Hello ,
You can use this switch statements.But instead of setting focus if you like to add pages then you can use the instance manager concept here.
For example
switch (this.rawValue) {
case "Treatment Note":
form1.page2.instanceManager.addInstance(1);
break; .......
Same logic for all the pages that you want to add.
Hope it helps.
Thanks.
Bibhu.
Views
Replies
Total Likes