Filling TDBLookupComboBox with QBE

AGIS

Member
The QBE-Mode works fine with normal fields.
If i use a TDBLookupComboBox, i got the problem, that QBE don't show me the right entry (after the first search) in the Combo-Box.
The Combo-Box is always empty, but the DataSet & Datagrid have the correct value.

So i work:
1) 1st Search (with ComboBox set to "Yes") -> ok
2) open QBE-Mode (ComboBox shuld show "Yes" but none ist selected). In the DB-Grid i see, that QBE would search with '6', my Code for "Yes"

Does DOA not support TDBLookupComboBox with QBE ?
 
If AllowOperators = True, then the combobox will not display the lookup value in QBE mode. This restriction is caused by the fact that the QBE value does not need to match the actual data type of the unerlying field. You could for example enter "> 7" in QBE mode, which no longer corresponds to a single key value.

You can still propulate the key value through the lookup control though.

If AllowOperators = False, these restrictions do not apply.
 
Back
Top