Setting up for the tutorial

Before you start the tutorial, you need to make sure that you can connect to a database and that you have the tutorial files.

Connecting to a database

The tutorial uses the EAS Demo DB V105 database that installs with PowerBuilder. This is an Adaptive Server Anywhere database and requires the Sybase Adaptive Server Anywhere engine.

If you do not already have Adaptive Server Anywhere on your local machine or server, you must install it now. You can install it from the PowerBuilder CD. If you installed PowerBuilder in a nondefault location, you must make sure that the odbc.ini registry entry defining the EAS Demo DB as a data source points to the correct location of the Adaptive Server Anywhere engine.

The Tutorial directory

The tutorial also uses the files listed in Table 2-4:

Table 2-4: Files required by the PowerScript tutorial

File

Contents

tutor_pb.pbl

PowerBuilder library that contains several objects that you use in the tutorial

pbtutor.hlp

A Help file that provides context-sensitive Help to a window that you build in the tutorial

tutsport.bmp

A bitmap

tshirtw.jpg

A graphic

tutorial.ico

An icon

When you install PowerBuilder, these files are installed in the Tutorial directory, which is a subdirectory of the PowerBuilder installation directory.

When you have finished the tutorial, you can delete the files.

The Tutorial\Solutions directory

The Tutorial\Solutions directory contains a PowerBuilder library called pbtutor.pbl that contains all the objects and scripts that you create in the first part of the tutorial, as well as workspace and target files. You can use this solutions library as a reference while you complete the first part of the tutorial.

You can also use it as a starting point if you want to complete only the Web application part of the tutorial. See “Getting the files you need for the tutorial”.

The Web targets tutorials

Before you start the JSP target or JSP Web services tutorial, you must make sure the following tools are installed on your computer: