Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Field prompts z/OS ISPF Dialog Tag Language Guide and Reference SC19-3620-00 |
|
A field prompt is static, descriptive text that explains the field it is associated with. Data fields and selection fields support the use of field prompts. To define a field prompt for a data field or selection field, specify the prompt text as the tag text on the DTAFLD and SELFLD tags. The PMTLOC attribute defines the location of the prompt using one
of these values:
You should define the amount of space the prompt uses by specifying the PMTWIDTH attribute on the DTAFLD and SELFLD tags. If the prompt text is longer than the width you specify on PMTWIDTH, the prompt is word-wrapped on multiple lines. Using the PMTWIDTH attribute can ensure that multiple fields with prompts are aligned evenly. If you do not specify PMTWIDTH, the field prompt length is determined by the length of the prompt text. When PMTLOC=BEFORE, the conversion utility inserts leader dots at the end of the prompt text to fill the specified prompt width. For output-only data fields, a colon is used in place of the last leader dot. For fields with this prompt location, it is a good idea to specify a PMTWIDTH with a value that allows for leader dots after the prompt text. This lends consistency to the panel appearance. The conversion utility issues a warning message when there is insufficient space for leader dots. Figure 1 shows how prompts appear. Figure 1. Prompt locations
The Name, Address, City, and State data fields show the prompts in front of the fields (PMTLOC=BEFORE), as does the Age field, which shows a prompt for a selection field. The same prompt width is used on the first five fields so that they align evenly. The Method of payment and Payment fields demonstrate having the prompt above the field (PMTLOC=ABOVE). Here is the markup used to demonstrate the field prompts in
Figure 1:
Figure 2 shows how the prompt width can affect the appearance of the prompt text. Figure 2. Prompt widths
The prompts in the two data fields are formatted differently. The prompt text of the first data field is not wrapped. It formats on one line, using as much space as necessary (up to the maximum available formatting width). The second data field has the same prompt text, with a prompt width that is less than the amount of space needed, so the prompt text is wrapped to as many lines as are needed. Similarly, the two selection fields also demonstrate how the prompt text appears based on the prompt width. The prompt text of data fields and selection fields can be displayed differently by omitting or specifying different values for the PMTWIDTH attribute. Here is the markup that demonstrates the field prompts
in Figure 2:
|
Copyright IBM Corporation 1990, 2014
|