Thank you all,
I'll post a sample project reproducing the issue as soon as possible, in the meantime:
- reading
http://wiki.freepascal.org/dblookupcombobox:
// The ComboBox should now be populated, however intially no text is displayed
// So right now there is no relationship between the selected record in the dataset
// and the contents of the ComboBox
and proposes to set KeyValue property:
cboLookup.KeyValue := dsetSource.FieldByName(FKeyField).AsVariant;
Well, to avoid any streaming system related problem, I dropped a Button on the form and in the OnClick event I tried:
cboLookup.KeyValue := dsetSource.FieldByName(FKeyField).AsVariant;
and it works ! (the combo shows the value)
Then tried:
DataSet.Next;
DataSet.Prior;
and they worked too;
Instead:
ListSource.Close;
ListSource.Open;
DataSet.FieldByName(...).RefreshLookupList
ListSource.FieldByName(...).RefreshLookupList
none of them worked.
Now I have to decide in which form's event I have to put the code.
Btw, RXDBLookUpComboBox works out of the box (but it's not so uniform to the other controls).
(fpc 3.0.0, Lazarus 1.4.4 on linux x64)