Previous Topic: Adding Spin Controls

Next Topic: Chapter Review

Regenerating the Function

Now that you have modified the panel, you must regenerate and rebuild the function that displays it before you can see the changes.

To regenerate and rebuild Project.Edit:

  1. If you still have the Generate and Build window open, switch to it. Otherwise, click the New Gen & Build window toolbar button.

    Regenerating the Function (1)

  2. Select Project.Edit:

    Regenerating the Function (2)

    To rebuild a panel, you regenerate and rebuild the function that scopes it. Because you only modified the Project.Edit.Panel object, you only need to regenerate and rebuild Project.Edit. If you had made changes that affected the scoped table or other objects, you would need to regenerate and rebuild those other objects as well.

  3. Click the Generate and Build toolbar button.

    Regenerating the Function (5)

  4. Click Yes when prompted to generate, and again when prompted to build.
  5. When the generate and build process is complete, choose Project.Edit in the Generate and Build window and click the Run toolbar button.

    Regenerating the Function (6)

  6. When prompted to choose a data source, choose Plex r7.0 Tutorial.dsn.

    The modified dialog appears, showing the data you entered:

    Regenerating the Function (4)

  7. Select the text in the Project Description field for Proj01, and replace it with a longer description. For example:

    Create a database application for the McCready account. Contact is Jim Hauser, 415-555-3146.

  8. Click Apply.

    Notice that the description has changed in both the grid and detail regions.

  9. Select Proj02 and repeat this process to change its description to:

    Create an email client for internal support staff.

    and change the Proj03 description to:

    Convert the ODBC version of the McCready application to a System i version.

  10. Close the application.