Rogue Wave Views Data Access Common Framework > Data Sources and Gadgets > Data-Source-Aware Gadgets > IliTableComboBox
 
IliTableComboBox
Figure 4.7    The IliTableComboBox Hierarchy and Example Gadget
The IliTableComboBox defines a combo box gadget that opens a pull-down menu when the user clicks on the combo button. The pull-down menu displays a column of the foreign table of the field.
IliTableComboBox* combo;
combo = new IliTableComboBox(display, IlvRect(20, 30, 150, 21));
panel->addObject(combo);
 
// Connect the combo to EMP(DEPTNO).
combo->f_setDataSourceName(“EMP”);
combo->f_setDataSourceColumnName(“DEPTNO”);
 
// Specify the mapping as DEPT(ID -> NAME).
combo->f_setForeignDataSourceName(“DEPT”);
combo->f_setForeignValueColumnName(“ID”);
combo->f_setForeignDisplayColumnName(“NAME”);

Version 5.5.1
Copyright © 2012, Rogue Wave Software, Inc. All Rights Reserved.