InfoPath: Switch between views
The ability to have multiple views of information and multiple uses for forms is one of the great features of InfoPath. And yet, any person responsible for supporting the users working with the forms can tell you that it can be a real challenge to users to have to switch views via the menu system. However, it's remarkably easy, once you know how, to add a button to your form that allows your users to quickly switch between views. The button will use a rule with the Action of Switch Views - it's a simple as that.
This will be a learn by doing exercise, so launch InfoPath. Open the sample form called "Meeting Agenda". This form has two views, one for the Agenda and one for the Meeting Minutes. We'll add a button to each view at the top of the form that allows the user to easily switch between the views.
Place your cursor in the space to the right of the words "Meeting Agenda". In the Design Tasks Pane, choose Layout. Under Merge & split cells, click on Split Table Cells Vertically. This will add another table cell in the title row. In the Task Pane click on Controls and drag the Button control into the new cell you just created.
We'll now assign a label to the button and set up a Rule that switches views when the button is clicked. Double click on the Button control. Change the label on the button to "Minutes". Click the Rules button in the properties, and add a new rule. Click on Add action and choose Switch Views. Chose the Minutes View (post meeting) as the view to switch to. There's no need to set a condition, since we want this action to occur when the button is clicked. OK through the dialogs to complete the process.
One view down, one to go. Use the View menu in the Task Pane to switch to the Minutes View (post meeting), and repeat the process, this time labeling the button "Agenda View" and switching to the Agenda View (pre meeting). Test and save the form and voilĂ , your users now have an easy way to switch between views!
This will be a learn by doing exercise, so launch InfoPath. Open the sample form called "Meeting Agenda". This form has two views, one for the Agenda and one for the Meeting Minutes. We'll add a button to each view at the top of the form that allows the user to easily switch between the views.
Place your cursor in the space to the right of the words "Meeting Agenda". In the Design Tasks Pane, choose Layout. Under Merge & split cells, click on Split Table Cells Vertically. This will add another table cell in the title row. In the Task Pane click on Controls and drag the Button control into the new cell you just created.
We'll now assign a label to the button and set up a Rule that switches views when the button is clicked. Double click on the Button control. Change the label on the button to "Minutes". Click the Rules button in the properties, and add a new rule. Click on Add action and choose Switch Views. Chose the Minutes View (post meeting) as the view to switch to. There's no need to set a condition, since we want this action to occur when the button is clicked. OK through the dialogs to complete the process.
One view down, one to go. Use the View menu in the Task Pane to switch to the Minutes View (post meeting), and repeat the process, this time labeling the button "Agenda View" and switching to the Agenda View (pre meeting). Test and save the form and voilĂ , your users now have an easy way to switch between views!
0 Comments:
Post a Comment
<< Home