Previous Topic: Calling the Wizard

Next Topic: Calling the Property Sheet

Modifying the Property Sheet

When end users click Maintain Projects on your top‑level panel, the property sheet should open to the Projects and Tasks tab. When they click Maintain Employees, the property sheet should open to the Employees tab. Before you can do this, you have to modify the Project Property Sheet function to accept a starting tab number as an input parameter.

To enable the property sheet to open to a specific tab:

  1. Open the action diagram for Project Property Sheet.
  2. Click Cancel on the Select Edit Point dialog.

    In the following steps, you add the FIELDS/Tab field to the Input variable in the Input variable group. The value of this Tab field specifies which tab of the property sheet to display.

  3. Set the Object Browser to display fields.
  4. Make sure that library objects are displayed. If they are not, click the Show/Hide Library Objects button.

    Modifying the Property Sheet (1)

  5. In the Variable Palette, expand the Input variable group.
  6. Drag the FIELDS/Tab field from the Object Browser to the Input variable in the Variable Palette:

    Now, any function that calls the Project Property Sheet function has to pass in a value for this field. Next, you add a statement to use that value to determine which tab to display.

  7. Navigate to the Pre Point before the End Initialize Edit Point.

    There is already code in the Pre Point. The statement you add goes at the end, after what is already there.

  8. Add the following statement:

    Set TabStripL<SelectedTab> = Input<Tab>

    This sets the displayed tab to the one indicated in the input variable. The action diagram should look like this:

  9. Save your model and close the action diagram.