Telegram_2019-12-12T15

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2019 > 12 > 12 >

Telegram_2019-12-12T15

Telegram link

 

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

 


 

Telegram link

 

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

 


 

Telegram link

 

2019-12-12T15:06:09

 

Just make FieldParent := LookupComboBox.SelectedValue

 


 

Telegram link

 

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

 


 

Telegram link

 

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

 


 

Telegram link

 

2019-12-12T15:27:45

 

is it possible for you to provide me an working example?

 


 

Telegram link

 

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