Specifications
4-51
Printer, Plotter, and Spooler Subsystem Programming
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
M Specifies a multi–select list which allows users to select more than one value from a
given list of options. The M operator works exactly like the L operator list except that
the multi–select field must be set to an m value.
An example of a multi–select list operator entry is:
:100:_l:M[print ”50\n55\n60\n65”]:60
R Specifies an option ring type of list. The op_type field is set to r. A ring list differs
from a regular list in that the user can continue to display list options by pressing
either the tab (forward) or backtab (reverse) keys. When a ring list reaches the
bottom of the options, it recycles to the top of the list. The ring list recycles in forward
or reverse. A ring list becomes a regular list when the F4 key is pressed.
The option ring operator can control the disp_values, aix_values,
values_msg_file, values_msg_set, and value_smg_id fields. The no
message ID, just a message ID, message set and ID, or message set, catalog and ID
are valid in a ring option list.
Validity checking is done if direct entry by the user is prohibited with the entry type
value set to n. The ring has hardcoded values that are either stand–alone or are
mapped to the base operating system values.
An example of stand–alone values would include a list of possible baud rates (
’1200,2400,9600,19200’ ) where the rate values themselves are used as the
flag arguments.
An example of mapped values would be an attribute to designate which paper drawer
on the printer is to be used. In this example, the three possible display values are
lower drawer, upper drawer, and envelope feed. These possibilities are mapped to
the base operating system flag operands ’0,1,2’. The base operating system
values are passed to the executed command.
Validity checking verifies that the attribute value is within the set of hardcoded values.
The following examples illustrate several types of option ring lists:
:100:_l:R[0,1,2]:0
:100:_l:R[none,full,emulator=0,1,2]:0
:100:_l:R[;none,full,emulator=0,1,2]:0
:100:_l:R[21,none,full,emulator=0,1,2]:0
:100:_l:R[1,21;none,full,emulator–0,1,2]:0
:100:_l:R[pioattr9.cat,1,21;none,full,emulator=0,1,2]:0