Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 27 Apr 2024, 09:10

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 02 Dec 2012, 23:31 
Offline

Joined: 02 Dec 2012, 23:19
Posts: 15
Hello,

I'm using EhLib 5.3 and Delphi XE pro. I have problem with TDBLookupComboboxEh control. In some cases this control shows wrong data. It highly depends on order of connecting dataset to the datasources. I wrote small demo application which shows how to obtain the problematic situation. In this application I can change order of connecting datasets to the datasources but in real app in some cases it is impossible. Other controls like Jedi or DevExpress lookup control shows correct data in the same situation.

Please send me an information if this bug is corrected in newer version of the EhLib library. Now I'm using 5.3 but I can buy upgrade.

--
best regards
Adam Siwoń


Attachments:
DBGridEh - lookup.zip [91.28 KiB]
Downloaded 240 times
Top
 Profile  
 
PostPosted: 09 Dec 2012, 02:08 
Offline
Администратор

Joined: 22 Dec 2011, 20:19
Posts: 335
Hello

You made Master/Detail relation between mtDetail and dsGroups.
It is incorrect when dsDetail and dsGroups participate as ListSources in LookupComboboxes.
LookupComboboxes call ListSources.Locate funtion fairly often and it is not defined when and how many times.
Every call of Locate of dsGroups will reorange detail information in dsDetail.

More correct way is to set mtDetail.MasterDataSource to dsMaster as It defines final value if the GroupId value.

I set mtDetail.MasterDataSource to dsMaster and both Buttons started to work correctly.

Best regards
Admin.

_________________
Best regards
Admin


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 51 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group