User`s guide
4-50
Guide to Printers and Printing
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
L Specifies that a pop–up list is displayed when the user selects F4. The pop up list
allows users to select only one option from a given list of options. The pop up list
is constructed from the cmd_to_list field values. The op_type field value
for a pop up menu is l (lowercase L).
Validity checking is done only when typed user input is prohibited. The entry type
for a field that does not allow direct user input is n . The cmd_to_list field
returns a newline–separated list. The values from that list are compared with the
attribute value.
The possible values for the L operator are the shell command strings for the
cmd_to_list field. The list generated from the command is a list of output
values separated by newline characters. For example:
:100:_l:L[print ”50\n55\n60\n65”]:60