Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 28 Mar 2024, 20:14

All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: 30 Jul 2020, 16:11 
Offline

Joined: 21 May 2020, 16:48
Posts: 13
Hello,

if I use the option "lsftContainsEh" for TDropDownBoxEh.AutoFilterType I was expected that I can type any text fragment to find one of the existing entries. But it's not as expected. Only the option "lsftBeginsWithEh" works.

Could you fix this or do you have a workaround?

Best greets


Top
 Profile  
 
PostPosted: 30 Jul 2020, 17:50 
Offline

Joined: 08 May 2014, 18:06
Posts: 660
Hello

Try to set TDBLookupComboboxEh.Style = csDropDownEh

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
PostPosted: 30 Jul 2020, 20:24 
Offline

Joined: 21 May 2020, 16:48
Posts: 13
I use TDBComboBoxEh like a static combobox without DB source. Items and KeyItems are filled programmatically and TextToListValues is set to true.


Top
 Profile  
 
PostPosted: 30 Jul 2020, 20:49 
Offline

Joined: 08 May 2014, 18:06
Posts: 660
Hello

Set TDBComboBoxEh.LimitTextToListValues = False.

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
PostPosted: 30 Jul 2020, 21:32 
Offline

Joined: 21 May 2020, 16:48
Posts: 13
Sorry, but what is the use of this proposal? My user should not be able to enter their own entries. He should only be able to find the programmatically created entries, so LimitTextToListValues must be True.

With option "lsftBeginsWithEh" for DropDownBox.AutoFilterType this works like expected, but the option "lsftContainsEh" is without any function. Otherwise, what is the point of this option if not the one I described?

Otherwise, even with LimitTextToListValues = False, no entries can be found with "lsftContainsEh".


Top
 Profile  
 
PostPosted: 01 Aug 2020, 02:38 
Offline

Joined: 08 May 2014, 18:06
Posts: 660
Hello

Quote:
Sorry, but what is the use of this proposal? My user should not be able to enter their own entries. He should only be able to find the programmatically created entries, so LimitTextToListValues must be True.

Unfortunately, in the current version, this combination of properties (LimitTextToListValues=True + AutoFilterType=lsftContainsEh) is not fully supported.

Quote:
Otherwise, even with LimitTextToListValues = False, no entries can be found with "lsftContainsEh".

I cannot confirm this problem.
It works for me in all my TDBComboBoxEhs.

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
PostPosted: 02 Aug 2020, 16:22 
Offline

Joined: 21 May 2020, 16:48
Posts: 13
Unfortunately, I didn't know that when I bought the component. For me it is important that the user can easily find the entries. Can you fix that in the next version?


Top
 Profile  
 
PostPosted: 03 Aug 2020, 02:25 
Offline

Joined: 08 May 2014, 18:06
Posts: 660
Hello

We have added this feature to the request list for the next versions of the library (EhLib 9.6 or EhLib 9.7).
But we still need to estimate the amount of work.
Although visually this flaw looks like it needs to be fixed, in reality DBComboBoxEh does not provide for typing in the middle of other text.
The component will have to add a separate algorithm that will be responsible for this search method.

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
PostPosted: 03 Aug 2020, 19:29 
Offline

Joined: 21 May 2020, 16:48
Posts: 13
A simple customer list already requires the "lsftContainsEh" option if each entry consists of a customer number and customer name. The user not only wants to search for customer numbers, but also wants to be able to find customer names.

It would be very nice if you could add that. The option is there and it would be nice if it worked too.

Thank you very much.


Top
 Profile  
 
PostPosted: 25 Aug 2020, 13:17 
Offline

Joined: 13 Jul 2019, 19:08
Posts: 88
Hello good day.
I am also looking forward to this functionality that is very important to me.

http://forum.ehlib.com/en/viewtopic.php?f=5&t=1039


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 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