|
<< Click to Display Table of Contents >> Navigation: Telegram > 2019 > 12 > 12 > Telegram_2019-12-12T15 |
2019-12-12T15:00:37
IWDBLookupComboBox.SelectedValue will give you the value selected by the user (or -1 if none is selected).
Using control's OnAsyncChange event you can just set the position of the master source to the SelectedValue
2019-12-12T15:04:29
No Sir I am not talking about filtering; I am selecting a child with another SQL string and this selection is with where fieldParent := LookupComboBox.KeyValue of the parent
2019-12-12T15:06:09
Just make FieldParent := LookupComboBox.SelectedValue
2019-12-12T15:08:07
inside OnAsyncChange event or OnChange event you can use SelectedValue to position the master and (because of M/D relationship) filter the child
2019-12-12T15:22:05
The code under onChange event or even Async has to fill the Federations from Province and the filter is the look.KeyValue that works perfectly but The child Federations just shows -No Selection- no data. It is connected in advance to the DataSource the same that I connected to DBGRID and works. It’s KeyField,Listsource and others are all preset
2019-12-12T15:27:45
is it possible for you to provide me an working example?
2019-12-12T15:29:25
Thank you Sir! Here in USA it is 4:28 pm and I am leaving for work now; tomorrow I will