Previous Topic: Define the Windows EnvironmentNext Topic: Testing the Application


Generate the Windows Application

Follow these steps:

  1. If necessary, open the Window Code Generation diagram again. To do so, from the Tree Control select Generation and then from the Tool Palette select the Window Code [generation] Generate the Windows Application icon.
  2. In the Window Code Generation diagram, select the EGOLF SERVICES Business System (Business Sys) and from the Main Menu select View and then select Expand All.

    Note: A very common generation mistake is failing to fully expand a module for generation and, subsequently, not generating all of its sub-modules. However, you should strive to only generate the modules that require generation, and avoid falling into the bad habit of regenerating everything all the time.

  3. All of the code needs to be generated. We can select each dash (–) under the Code column individually, or we can simply select the down arrow under the Code column to have all of the items selected at once. We also want to trace the application for testing, so we want to select the down arrow under Trce as well. Finally, selecting the Code and Trce columns only causes the source code to be generated. To have the source code compiled into an executable program, we need to select either the dash under the Inst column or the down arrow under the Inst column. The Window Code Generation diagram should look as follows:

    Generate the Windows Application

  4. To start the code generation, from the Menu Bar select Generate, and then select Code, Selected. Alternately, simply select the [generate] Code, Selected Generate the Referential Integrity Triggers icon from the Tool Palette. Depending on the speed of your workstation, you will briefly see the Generation Progress dialog shown below, which will close automatically if the code generation is successful.

    Generate the Windows Application

    If the generation is successful, in the Window Code Generation diagram you will see that the list of modules to be generated has been replaced with a count of the total number of lines of source code generated for each module.

    Generate the Windows Application

    The code generation happens in foreground, which means you cannot use the Toolset while the generation is taking place. The installation happens in background by starting up the Build Tool. If everything works successfully, the Build Tool displays the Build-OK status message as shown below.

    Generate the Windows Application

You can review the results of the installation by selecting the Load Module in the Build Tool as shown above and then selecting the Review Generate the Windows Application icon on the Toolbar.