Previous Topic: Defining Restrictor Processing

Next Topic: Adding Commit and Rollback Processing

Restricting the Display of Tasks

You have now added the Project ID field to the Restrict variable in the Task.Edit function. Remember that Task.Edit is the function that the wizard uses to display its second part.

Next, you add action diagram statements to restrict the display of tasks on the second part of the wizard. The first step is to put the Project ID field into the Restrict variable.

To set the Project ID field value:

  1. Click the Action Diagrammer to bring the Task.Edit action diagram into focus.
  2. On the View menu, ensure that Show Full Logic is selected.
  3. From the Block menu, choose Edit Points (CTRL+SHIFT+E).

    Restricting the Display of Tasks (1)

  4. Scroll down and select the End Show Panel Post Point, then click OK. This is Post Point that immediately follows the End Show Panel Post Point:

    Restricting the Display of Tasks (2)

    The Select Edit Point dialog provides a conventional way to locate and focus on a particular Pre or Post Point.

  5. Inside the End Show Panel Post Point, enter the following lines of code:

Set Restrict<Project ID> = SharedData<Project ID>
Go Sub Reload Grid

The Reload Grid subroutine reads the database to retrieve rows to display on the grid. Because you use the Restrict variable to read only the tasks for a single project, the grid only shows those rows. Adding the Project ID field to the Restrict variable, and then setting its value, is like setting up a display filter.

  1. Save your model and close the Action Diagrammer.