Data Access User Manual > Rogue Wave Views Data Access Common Framework > Data Sources and Gadgets > Data-Source-Aware Gadgets > IliDbStringList
 
IliDbStringList
The IliDbStringList Hierarchy and Example Gadget
The IliDbStringList class defines a string list gadget that can be connected to a data source. This gadget displays a list of strings and/or pictures that come from the field of a foreign table column.
IliDbStringList* lst;
lst = new IliDbStringList*(display, IlvRect(20, 30, 150, 150));
panel->addObject(lst);
// Connect the string list to EMP(DEPTNO)
lst->f_setDataSourceName(“EMP”);
lst->f_setDataSourceColumnName(“DEPTNO”);
 
// Specify the mapping as DEPT(ID -> NAME
lst->f_setForeignDataSourceName(“DEPT”);
lst->setForeignValueColumnName(“ID”);
lst->setForeignDisplayColumnName(“NAME”);
lst->setForeignBitmapColumnName(“PICTURE”);

Version 6.3
Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.