9.3. Creating Multiple Views

Creating multiple views is actually quite easy and can greatly enhance the usability of the InfoPath forms. To accomplish creating a new view, press the Add a New View... button. This will create a blank view that you can fill in. Since you will be using the same data source you don't have to worry about that step. Once the view is created you can then modify the view properties for display in the menu and customize as needed.

9.3.1.

9.3.1.1. Try It Out: Adding the Notes and Orders Views

It's time now to create a couple of more views for your form. You will be using the Notes field for one view and the tblOrders table for the other. Using the same form you have been working on in this chapter:

  1. Click the Views task in the Design Tasks task pane.

  2. Click the Add a New View... link. The Add View dialog box will be displayed.

  3. Type Notes in the New view name text box, as shown in Figure 9-12.

    Figure 9.12. Figure 9-12
  4. Click OK. A blank view will be created and displayed.

  5. Click the Data Source task in the Design Tasks task pane.

  6. Drag and drop the Notes field from the tblCustomers table in the dataFields branch of the data source. A repeating section will be created with Notes field included.

  7. Arrange the Notes label and field on the view as shown in Figure 9-13.

    Figure 9.13. Figure 9-13
  8. Click the Views task in the Data Source task pane.

  9. Click the Add a New View ...

Get Beginning InfoPath™ 2003 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.