HP System Dictionary/XL General Reference Manual Vol 1 (32256-90004)

7- 98
Example
To define the search item for data set CUSTOMER, relate the element ACCOUNT to the data set
CUSTOMER with the image-dataset key element relationship type.
Chain
Every chain within a detail data set is fully defined by:
1 The detail data set the chain is in
2 The search item
3 The sort item, if any
4 The path to a master data set
5 The database the chain is in
This is considered a five-way relationship. To define this five-way relationship in the dictionary, use the
five-way relationship type:
image-dataset
element
element
image-dataset
image-database
where the relationship class is chains. Note that the order of these entity types is very important.
Information on N-ary (3, 4, 5, and 6-way) relationships is located in Chapter 3 of this manual.
Example
To define the ACCOUNT chain in data set SALES, relate the detail data set SALES, the element
ACCOUNT, the element PURCH-DATE, the data set CUSTOMER, the database STORE, in that order,
with the relationship class chains. To indicate that this is the primary path, set the attribute primary-flag
to true.
User Class Number
A user class number is defined as an image-class entity. Note that in the dictionary the class can be given
a name instead of the actual image class number. Password is specified in the image-class attribute
password. The user class number is stored in the image-class attribute class-number.
Example
To define the user class number 1, create the image-class CLERICAL (or any name that implies which
class this is) with password equal to clrk, and class-number equal to 1. To establish that class-number 1 is
in database STORE, use the relationship type image-database contains image-class.
Data Item Class List
A data item class list is defined by the element contains image-class relationship type. An element (data
item) should be related to each image-class in its class list with READ/WRITE access specified in the
element contains image-class relationship type attribute access.