Hello,
I am unable to show items in TIWDBLookupListBox or TIWDBListbox from a DataSource.
I have a TIWAppForm with:
- TADOQuery *ADOQuery1;
- TDataSource *DataSource1;
- TIWDBLookupListBox *IWDBLookupListBox1;
- TIWDBListbox *IWDBListbox1;
- TIWListbox *IWListbox1;
I have configured:
- ADOQuery1.ConnectionString = ...
- ADOQuery1.SQL = "select Name from table";
- DataSource1.DataSet = ADOQuery1;
And I try to show this information in three Listbox to test which must I use in finally version:
- IWDBLookupListBox1.ListSource = DataSource1
- IWDBLookupListBox1.ListField = "Name"
- IWDBListbox1.DataSource = DataSource1
- IWDBListbox1.DataField = "Name"
In OnCreate Event:
this->ADOQuery1->Active = true;
ADOQuery1->First();
while (! ADOQuery1->Eof)
{
IWListbox1->Items->Add(ADOQuery1->FieldByName("Nombre")->AsString);
ADOQuery1->Next();
}
The ADOQuery is correctly configured because OnCreateEvent fills IWListbox correctly.
But data-aware components TIWDBLookupListBox and TIWDBListbox are empty.
TIWDBLookupListBox & TIWDBListbox components are not TMS components but components from the IntraWeb framework itself. Please contact Atozed software for support for these components.
I had confused, you have reason
sorry