Help Center>Foundation Help

Applies to:

  • Winshuttle Foundation

3-1. Add form views

For this phase we want to add multiple views to the form.

The goal is to split up the form into multiple views:

  • OrignatorView
  • AccountingView
  • PurchasingView
  • MasterDataView

These views will have differing levels of interactivity with different sections of the form. For example:

  • Requester Information will be common with all views, and it can be edited only by the form Originator. For all other views it will be read-only.
  • Basic Vendor Information will be common with all views, and it can be edited only by the form Originator. For all other views it will be read-only.
  • MasterDataView will have all the sections visible, including a button that will allow the data to be posted to SAP.

Create MasterDataView

First, to create the MasterDataView, you can just rename your current view (View1) to MasterDataView.

Note: Do not use spaces in the Name field. There can only be letters, numbers, or underscore ( _ ) characters.

  1. In the Form, right-click View1, and then click Properties.
  2. In the Properties pane under General Settings:
    • Next to Name, click the field and then rename View 1 to MasterDataView.
    • Next to Label, click the field and then rename View 1 to MasterDataView.

Composer: Changing a view name and label illustration

Duplicate fields across multiple views

Once you have a single view and a basic form built, you will want to copy the form in the first view to the other views.

  1. On the list of Views, right-click the View to duplicate.
  2. Click Duplicate View.

  3. Repeat the process for each view you want to create (for this tutorial we are using 4 views: OrignatorView, AccountingView, PurchasingView, and MasterDataView).

Rename the Views

  1. On the list of Views, right-click a View, and then click Properties.

  2. In the Properties pane, next to Name, type a new name for the view.

The goal (for this example) is to create 4 views, as shown below (in the Properties pane on the Layout tab).

Make the Requester and Vendor Information read-only

We want to make the Requester and Vendor Information read-only for everyone except the Originator. We'll also use a rule to color the field gray (a common indicator for a read-only field).

To set a field to read-only:

  1. On the Form Canvas, click the form view you want to make changes to.

  2. Click the field or group you wish to change. For this example, click the Requester Information group.
  3. In the Properties pane, under General Settings, next to Read Only, click the drop arrow and select True from the menu.
  4. You will be prompted to apply the changes to ALL views or just the current view. Click No, this view only.

    Tip: Now we'll create a rule to color a field gray to indicate that it is read-only.

  5. Right-click the field, and then click Edit Rules.
  6. Click Add, and then click Rule Wizard.
  7. Type a label for the rule, and set the Type to Formatting (see below for an example).
  8. Next to Background Color, click the drop arrow, and select the color gray from the menu.
  9. Click OK.