ENABLE Reference Manual

ENABLE ATTRIBUTES
SIZE Attribute
Multifile Considerations. If you want to display more than one
record in a box for a multifile application, consider the
relationship between the records in the parent and child boxes
when you supply a value for SIZE:
• If a one-to-one relationship exists between the parent and
child box, a value of one should be supplied for both parent
and child. A one-to-one relationship exists if one record
for a child box has the same join field value as one record
for a parent box.
• If a one-to-many relationship exists between the parent and
child box, SIZE should be 1 for the parent box and can be
greater than one for the child box. A one-to-many
relationship exists if several records for a child box can
can have the same join field value as a single record for
a parent box.
• If a many-to-one relationship exists between a parent and a
child box, SIZE should be 1 for the child box and can have a
value greater than 1 for the parent box. If SIZE is greater
than 1 for the parent box, you should supply OFF as the value
of the DELETE, INSERT, and UPDATE attributes for the child
box. A many-to-one relationship exists when several records
from a parent box have the same join field value as a single
record from a child box.
Example
If you execute an application generated with the following series
of ENABLE commands:
SET BOX RECORD parts
ADD BOX part1
SET BOX RECORD supplier
ADD BOX supplier-1
SET BOX SIZE 2
SET BOX RECORD orders
ADD BOX orders
...
the application displays the screen label and field pairs for one
record in the "Part1" and "supplier-1" boxes and displays the
screen labels and field pairs for two records in the "supplier-1"
box.
4-65