For example, if you want to print various logos of the company based on the
company name field in the database file, you need to name the page segment
objects containing logo data the same as the company names in the field. But in
some cases, the length and the characters of the company name may be invalid for
AS/400 object names. AFP Utilities for AS/400 provides the function that maps a
field value in the database file to an object name in the AS/400 system for the
above case.
You can specify which value should be mapped to which AS/400 object name. The
mapping can be specified for each object type, page segment, document, folder,
file, library, and member. For example, a field value 'IBM Co.' can be mapped to a
page segment name 'QFCLOGO' and a file name 'QAFCGRPH'.
When variable data is specified for page segments or graphics, AFP Utilities for
AS/400 searches the specified mapping for the object type in the PFD definition. If
no mapping is specified for the object type, or the searching field value is not
found, the field value is taken as an object name. If the length of the field value is
longer than the maximum object name length, the characters on the right are
ignored.
The Specify Mapping Object Name display allows you to select the object to specify
the mapping. You can select :
Page segment
Folder
PC document
Library
File
Member
When you select
Page segment
on the Specify Mapping Object Name display, the
following display appears:
Note: Similar displays appear for other objects.
Field Name Description
1=Select Allows you to select one or more objects from the list.
Opt Specify 1 (Select) in the
Opt
column beside the object you want to
select.
Object The objects for which you can specify the mapping.
186 AFP Utilities for AS/400 User’s Guide