We experienced an issue with the TDBAdvSmoothComboBox having differents behaviors depending on different factors:
Opening it with no items before populating it
If the datasource is connected to another db componant
The position of the component in the DFM file (order wich we are dropping the items linked to the same datasource on the form)
I reproduced the behavior in the grid below.
Thanks in advance.
The TDBAdvSmooth
ComboBox was previously opened with no item before populating it the
first time
Have another component connected to the same DataSource as the TDBAdvSmooth
ComboBox
The code of the other component is placed (before/after) the TDBAdvSmooth
ComboBox
Behavior
No
No
--
The component populate itself correctly but the datasource lookup did
not work correctly
Yes
No
--
The component populate with “item 0” in each rows except the last one.
The Lookup of the datasource work correctly and the items corrects itself as we click on it
No
Yes
After
The TDBAdvSmooth
The component populate itself correctly, The Lookup of the datasource
work correctly UNTIL we emptied the list … After that, The component populate
with “item 0”
in each rows except the last one.
The Lookup of the datasource work correctly and the items corrects itself as we click on it
Yes
Yes
After
The component populate with “item 0” in each rows except the last one.
The Lokkup of the datasource work correctly and the items correct
itself as we click on it
No
Yes
Before
The component populate itself correctly but the datasource lookup did
not work correctly
Yes
Yes
Before
The component populate with “item 0” in each rows except the last one.
The Lookup of the datasource work correctly and the items corrects itself as we click on it
As these are specific cases, and it might also relate to the other component that you are using,
could you perhaps send us a sample screenshot that demonstrates this and can you also test if the component is working correctly if it is used without the second component?
As you can see in the grid, the problem occurs even if you don't have any other component linked to the same datasource as the TDBAdvSmoothComboBox.
As another test, we even tried to link two TDBAdvSmoothComboBox to the same datasource wich was linked to a simple clientdataset(populated by file) One TDBAdvSmoothComboBox will populate correctly the other one with only show item 0...
We have also a Exception EAccessViolation when we close the application.
By the way, the first problem mentioned at first, occured when linked to a SDQuery wich is connected to a SQL Server DB.
I tried several method of populating the datasource (SDQuery, ClientDataset, AdoQuery, etc...) But the first problem seems to happen when connected to a SDQuery.
The last exemple above append even with a standalone client dataset.
I will post you a demo project as I will be able to emulate de connexion to our Database.