SFLSNGCHC (Subfile Single Choice Selection List) Keyword for Display Files--Example

Figure 275 shows how to specify the SFLSNGCHC keyword:

Figure 275. Specifying the SFLSNGCHC Keyword

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
A
A          R SFLRCD                    SFL
A            CTLFLD         1Y 0H      SFLCHCCTL
A            F1            10A  O  6 10
A          R SFLCTLRCD                 SFLCTL(SFLRCD)
A                                      SFLSNGCHC
A                                      SFLPAG(5) SFLSIZ(&SFLSIZ);
A                                      SFLDSP SFLDSPCTL
A                                      ROLLUP(10)
A   10                                 SFLEND(*SCRBAR)
A            F3             5S 0H      SFLSCROLL
A            F2             4S 0H      SFLRCDNBR(CURSOR *TOP)
A            SFLSIZ         5S 0P
A                                 1 30'Panel Title'
A                                 4  5'Select One Item:'

In this example, when using a graphical display station attached to a controller that supports an enhanced interface for nonprogrammable work stations, a single-choice list looks like this:



REQTEXT

Figure 276 shows how to specify what color the items on the list should have on a color display. Available items are displayed in red. A selected item is displayed in blue. Unavailable items are displayed in yellow. The CHCAVAIL, CHCSLT, and CHCUNAVAIL keywords can also be used to set the display attributes of the items on the list. See the description of these keywords in this book for examples of setting display attributes.

Figure 276. Specifying the SFLSNGCHC Keyword

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
A
A          R SFLRCD                    SFL
A            CTLFLD         1Y 0H      SFLCHCCTL
A            F1            10A  O  6 10
A          R SFLCTLRCD                 SFLCTL(SFLRCD)
A                                      SFLSNGCHC
A                                      SFLPAG(5) SFLSIZ(&SFLSIZ);
A                                      SFLDSP SFLDSPCTL
A                                      ROLLUP(10)
A                                      CHCAVAIL((*COLOR RED))
A                                      CHCSLT((*COLOR BLU))
A                                      CHCUNAVAIL((*COLOR YLW))
A   10                                 SFLEND(*SCRBAR)
A            F3             5S 0H      SFLSCROLL
A            F2             4S 0H      SFLRCDNBR(CURSOR *TOP)
A            SFLSIZ         5S 0P
A                                 1 30'Panel Title'
A                                 4  5'Select One Item:'