Problem Note 5867: Selected values from dropDownList control may not be initially visible
in Data Table and Table Viewer
On PC platforms, if you are using the dropDownList cell control with a
Table Viewer control or a Data Table object within a SAS/AF FRAME entry,
the current value within the cell as well as the selection you make from
the dropDownList may not be initially visible until you move off of the
cell. This will happen when the list of values displayed by the cell
control (valueList attribute) has been created with the LVARLEVEL
function in SAS Component Language (SCL) and the LVARLEVEL function has
padded the data values in the list with trailing blanks. While the
value with the largest number of characters will be visible, the other
values will not be. Consequently, this will only be an issue when the
data values are of an unequal length of characters.
To circumvent the problem, create a copy of the SCL list populated by
the LVARLEVEL function with logic such as the following:
dcl list new_list={};
dcl char(8) text;
listlen=listlen(original_list);
do i=1 to listlen;
text=trim(getitemc(original_list,i));
rc=setitemc(new_list,text,i,'y');
end;
In the above code fragment, ORIGINAL_LIST is the list populated by the
LVARLEVEL function and NEW_LIST will contain values that are not padded.
Operating System and Release Information
| Product Family | Product | System | Reported Release | Fixed Release* |
| SAS System | SAS/AF | Microsoft Windows NT Workstation | 8.1 TS1M0 | |
| Windows Millennium Edition (Me) | 8.2 TS2M0 | |
| Microsoft Windows 95/98 | 8.1 TS1M0 | |
| Microsoft Windows 2000 Datacenter Server | 8.1 TS1M0 | |
| Microsoft Windows 2000 Professional | 8.1 TS1M0 | |
| Microsoft Windows 2000 Server | 8.1 TS1M0 | |
| OS/2 | 8.1 TS1M0 | |
| Microsoft Windows 2000 Advanced Server | 8.1 TS1M0 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Problem Note |
| Priority: | medium |
| Date Modified: | 2001-09-21 15:33:46 |
| Date Created: | 2001-09-17 14:06:07 |