
Chapter 1: Overview
Building field objects
You build field objects for nested groups the same as for
a group, one field object defines the nested group's entire data
area, and then one field object defines each element in the nested
group.
For the nested group—a^color|size#$c*
—where
color|size is the nested group contained in element “b” in Figure 1-11, you would build
two field objects and modify an existing object as shown in Table 1-3.
Table 1-3: Nested group field objects
Field name
|
Data it defines
|
nested_grp
|
This field object already exists as a “member
of” the parent group. You modify its options so that it
also defines the nested group’s entire data area.
|
color_element
|
Defines the color element.
|
size_element
|
Defines the size element.
|
Table 1-4 gives
the offset, length, and options settings for these field objects.
Table 1-4: Nested group field object settings
Field object
|
Offset
|
Length
|
Option
|
nested_grp
|
Follows-fld: a
|
Separator: $
|
Select the Member of Group Field Object option
and in the related entry field select the field object that defines
the parent group. Select the This Field Object Defines a Group option.
|
color_element
|
By Value: 0
The first element in the group always has an offset of zero.
|
Separator: |
|
Select the Member of Group Field Object option
and select the nested_grp field object in the related entry
field.
|
size_element
|
Follows-fld: color_element
|
Separator: #
|
Select the Member of Group Field Object option
and select the nested_grp field object in the related entry
field.
|
Copyright © 2005. Sybase Inc. All rights reserved.
|
|
View this book as PDF 