Previous Topic: Adding a Field to a Variable

Next Topic: More About Variables and Fields

Updating the Shared Data

  1. Enter Insert inserted in the input line of the Action Diagrammer, and press F4.

    The Action Diagrammer moves to the Insert Inserted Pre Point. (Pre Points are explained in more detail later.)

  2. Select the Pre Point and press the space bar on the keyboard to expand it.
  3. Click the line below the Pre Point so that it has focus. This is where you add a line of code. The body of the action diagram should now look like this:

    Updating the Shared Data

    The Insert Inserted Pre Point corresponds to the point at which a new Project record was successfully inserted into the database.

  4. Copy the data from the Project ID field in the InsertP region (located in Panel, Project.AddProject in the Variable Palette) into the SharedData variable so that the next part of the wizard can use it.
  5. In the input line in the Action Diagrammer, enter the following statement and then press Enter.
    Set SharedData<Project ID> = InsertP<Project ID>
    

    This statement copies the data from the Project ID field in the InsertP region into the SharedData variable, so that the next wizard part can use it. Instead of typing the entire statement you could have constructed it using drag and drop techniques, as explained in the next step.