So where do you enter this little piece of code? First, you need to start an
OpenEdge session, create and connect to a copy of the sample database the example uses, and
then bring up the Procedure Editor.
Note: This topic describes the steps you use in the Procedure
Editor. You may also develop your code using Progress Developer Studio for
OpenEdge - an integrated ABL development environment. See Progress Developer Studio for OpenEdge Online Help for
more information.
To start your OpenEdge session:
From the Windows desktop Start
menu, select the OpenEdge environment, using whatever name you gave to it when you installed
it, and under that menu item, select the Desktop
option. For example, select Start > Progress > Desktop.
The Application Development Environment (ADE)
Desktop window appears.
From here you can access all the basic OpenEdge development
tools.
Click on the first icon to open the Data
Dictionary.
The Dictionary
Startup dialog box opens. The Data Dictionary is where
you define and manage all the tables and fields in your application database. To get you
started, you can create your own copy of the Sports2020 database, which is the standard
OpenEdge demo database. You need to copy the database so that your test procedures can
make changes to it without modifying the version of it in your install directory.
In the Dictionary Startup dialog box,
select the option to create a new database, then click OK:
The Create Database dialog box
appears and prompts you for the name of your copy of the database.
Type Sports2020. By default,
OpenEdge creates a database named Sports2020 in your working directory. If you'd like the
database to be somewhere else, you can click the Files button next to the New Physical Database
Name fill-in field to browse the directory structure for the right location
for your database.
After you've entered your new database name, select the Start with A Copy of the Sports2020 Database option:
Click OK. The Connect Database dialog box appears.
Click OK.
Because you created this database as part of the Data Dictionary startup, which
needs to have a database connected before it lets you in, the Data
Dictionary main window now opens.
To familiarize yourself with the Sports2020 database tables:
Select the Customer table from the Tables
list, then click the Fields button on the Dictionary's toolbar: All the fields (or columns, to use the equivalent SQL terminology) in the
table are shown in the Fields list to the right.
Scroll through the list to see all the fields in the table. You'll be displaying a few of
these fields later, and using others to select a subset of the Customers for display.
Notice in particular the CustNum field which gives a unique number to
each Customer.
Scroll down the list of Tables,
then select the Order table.
You
can see that there is an OrderNum field, which
gives each Order a unique number. Notice also that, as in the
Customer table, this table includes a CustNum field. You will use this field in Use Basic ABL Constructs to link, or join, the Order table to the Customer record with the same CustNum value.
There is much more to see in
the Data Dictionary. If you want to wander around in the displays, go
ahead, but do not change anything! Any changes you make might affect steps later in this
tutorial. If you make changes to tables or fields, this might invalidate records that are
already in the sample database or keep some of your later example procedures from
working.
To leave the Data Dictionary, select Database > Exit from the Dictionary menu.
You remain connected to the database until you go back to the Data
Dictionary and disconnect from the database or until you end the OpenEdge
session.