HP Integrity NonStop J-Series User Manual

Page 146

Advertising
background image

TAILORING AN APPLICATION
Restricting an Application to a Subset of Records for a Child Box

When you supply ON as a value for the FILL and VALUES
attributes, the application, upon execution, reads the record
in the "dept" file whose field values match the field values
described in the DDL VALUE clause. Since you have supplied
OFF for the values of the DELETE, INSERT, READ, and UPDATE
attributes, the application cannot perform any other file
operation on the "department-box." Therefore, the
application cannot retrieve any other record for this box.

3. Resetting the box attributes before you add a box to
represent the "employee" file, as follows:

RESET BOX *
SET BOX RECORD employee
ADD BOX employ-box

If you do not include the RESET command, ENABLE will use the
current value (OFF) of the DELETE, INSERT, READ, and UPDATE
attributes for "employ-box." This means that the application
could not perform any file operation on this box.

Because the application can only access a single department-box
record, it can only read or insert records in employ-box that
match that single department-box record.

Figure 6-12 illustrates the events that occur when you execute an
application generated with the following ENABLE commands:

SET BOX RECORD department-limits
SET BOX VALUES ON, FILL ON
SET BOX DELETE OFF, INSERT OFF, READ OFF, UPDATE OFF
ADD BOX department-box
RESET BOX *
SET BOX RECORD employee
ADD BOX employ-box
SET APPL TREE (01 department-box
02 employ-box LINK dept-num TO OPTIONAL dept)
SET APPL PATHCOMFILE employ-limit
ADD APPL employ-limit
GENERATE APPL employ-limit

6-28

Advertising
This manual is related to the following products: