Progress
Application Development
Environment — Getting Started
Running the Sample Application
Running the SportsPro sample application gives you a feel for building applications with the Progress AppBuilder and SmartObject technology. The sample application contains several modules, each demonstrating a technique for solving a business problem. After viewing the sample application, you will build part of the Order Tracking System module in the tutorial and exercises later in this guide.
Follow these steps to run the SportsPro sample application:
- If you have not already connected to the database, connect to your copy of the Sports2000 database. For information about connecting to your copy of the Sports2000 database, see the "Creating and Connecting To the Sports2000 Database" section in this chapter.
- Start the ADE Desktop from the Windows Start menu and then start the AppBuilder from Desktop toolbar.
- Run PRO*Tools by choosing Tools
PRO*Tools from the AppBuilder main window. The PRO*Tools palette opens:
![]()
- Choose the Run button from the PRO*Tools palette. The Run Procedure dialog box opens:
![]()
- Type wmain.w in the Name of Procedure to Run text box.
The
wmain.w
file is a window file containing the 4GL commands that create the window. If you copied your sample files as described in the "Copying the Sample Files" section, you do not need to qualify the filename with its directory. Thewmain.w
file should be in your working directory, and your working directory is a standard entry in your PROPATH.- Choose Run. The main window of the SportsPro sample application opens:
![]()
The SportsPro application’s main window is a SmartWindow. The buttons on this SmartWindow use the new FLAT–BUTTON attribute to create a two-dimensional look.
Table 2–2 lists the components used in the main window of the SportsPro sample application. It lists all the procedure files, all the SmartObjects, and any simple objects with important functions. Except for SmartObjects like SmartFilters for which the Application Development Model (ADM2) supplies the masters, the procedure files and SmartObject master files listed in this table are in the
gui
folder in your working directory.
NOTE: Table 2–2 and the tables in later sections present the objects and procedures from each module in an event-driven order. The objects contained in another object, and the procedures executed in that object, are listed directly after that object. Where data passes between objects and procedures, they are listed chronologically. Otherwise, objects are listed from top to bottom in their container.Each of the buttons on the sample application’s main window launches a module. You can now examine these modules in turn. As you become more familiar with the Progress products, you can return to these modules and examine them in greater detail. These modules show how to accomplish several common programming tasks.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |