Specifications
4-50
Guide to Printers and Printing
Auxiliary Operations and Validation Operators
Auxiliary operations for the SMIT dialog definitions determine the type of list and input
required from the user. The types of lists available in the dialogs are list, multi–select list,
range list, option ring, or multi–select option ring. The limits field operators that specify
the type of auxiliary operation used by an attribute are L, M, G, and R.
Only one type of auxiliary operation is supported at a time. The default is op_type=n. The
n value means that no auxiliary operation is permitted for the field.
F Allows control of the cmd_to_list_mode field of the sm_cmd_opt object. The
cmd_to_list_mode field specifies how much of an item from a list should be used.
The list is produced by the command specified in the cmd_to_list field object. For
example, if the cmd_to_list field produced the following list:
60 (6 line per inch)
80 (8 line per inch)
66
Possible values for the F operator are:
a
Get all fields. This is the default value.
1
Get the first field.
2
Get the second field.
To instruct SMIT to retrieve the first field from the list, enter:
:100:_l:F1:60
G Specifies a range list. The G operator gives the cmd_to_list_mode an r value. The r
value specifies that the information displayed by the cmd_to_list field is a range
of information rather than a list.
Validity checking is always done on a range. The data in a range list is in the form of
x..y (1..30) or..y (..30) or x.. (1..) where x and y are integers and specify the upper and
lower bounds of a range. Validity checking ensures that the attribute value is in the
range specified. The integer can be negative; however the upper bound (y value)
must be greater than or equal to the lower boundary (x value). To designate that the
field list operation is a range between 50 and 100, enter:
:100:_l:G[50..100]:60
H Specifies the message catalog specification for help text for a corresponding attribute.
The message catalog specification includes message catalog name, set number, and
message number. The help text is used in SMIT dialog that use the attributes for
which help is assigned.
To assign help to a flag, –b, from the pioattrl cat dialog, enter:
:100:_b:H[pioattr1.cat,5,123]:60
I Specifies the publication specification for help text for a corresponding attribute. The
publication specification includes values for the help_msg_id, help_msg_base,
and help_msg_book fields in the sm_cmd_opt SMIT object class. The help text is
used in the SMIT dialog that uses the attributes for which help is assigned.
To assign help to a flag, –b, from the publication specification, enter:
:100:_b:I[100145]:60