Download "user manual"

Transcript
8.2.3 The sample portal customer application
In our portal, we included a customer database. The enterprise database is a
DB2 table and the front end to the DB2 table is a Notes database. The
records of the database can be filled, altered, and deleted using the Notes
database, which manipulates the DB2 table using the DECS tool.
The application can be accessed through a Web browser or Notes client.
Note
We experienced an error using DECS with the Web browser. Retrieval of the
data did not work at all times. The error is reported and should be fixed in
succeeding releases.
8.2.3.1 The DB2 part of the application
We used the following SQL to create the DB2 table shown in Figure 89 on
page 166:
CREATE TABLE DSN8610.CUSTOMERS (
CUSTNO
CHAR(6) NOT NULL,
COMPNAME CHAR(20),
FIRSTNME CHAR(20),
LASTNAME CHAR(20),
GENDER
CHAR(1),
HOBBIES CHAR(40),
DEPT
CHAR(40),
PHONE
CHAR(20),
MAIL
CHAR(40),
INFOS
CHAR(200) )
IN DSN8D61A.DSN8S61R;
Figure 88. SQL to create a DB2 table
DB2G is the name of our DB2 subsystem on the S/390, DSN8610 is the
default identifier which set up the table, DSN8D61A is the tablespace, and
DSN8S61R is the name of the database.
The Custno Column will be used as the DECS key, so a null entry should not
be allowed.
8.2.3.2 The Domino part of the application
We created a simple application to show how DECS works. The customer
form was created for the both the Notes client and Web access. The form
Chapter 8. Integration using Lotus connector products
165