SAS/AF ListOfValues Composite Class
This composite class was the subject of my SUGI 26 paper.
This V8 composite class can be used in a SAS/AF frame by installing the class and adding the class to the Components tab. To instantiate the class during build, drag the class from the components tab and drop it into a frame.
The class is used when you want to design a frame that contains a list box in which you want the user to maintain a list of unique non-blank values. The values are stored in an SLIST catalog entry, so the list of values is persistent across frame invocations and SAS sessions. The frame author decides which catalog and entry name the SLIST will be (or that decision can be surfaced to the user as well, using other components [not shown here])
The class contains these attributes that should be edited for each specific use of the class.
Appearance: valuesListBoxTitle (optional title to place above the list box) valuesAddDialogPrompt (used during call to EnterValue frame when Add button clicked) valuesAddDialogTitle (used during call to EnterValue frame when Add button clicked) Data: valuesSLISTEntryName (catalog entry where the list of values resides)
The screenshots show what the class and Add dialog will look like when:
.valuesListBoxTitle = 'Phone Numbers' .valuesSLISTEntryName = 'SASUSER.MYFRAME.PHONELIST.SLIST' .valuesAddDialogTitle = 'Enter a Phone Number' .valuesAddDialogPrompt = 'Enter a phone number to add to the list'
This class is designed to be installed as common.components.listofvalues.classCopyright 2000 Richard A. DeVenezia This page was last updated 13 December 2001.