Components for Delphi and C++ Builder.

Go to Russian forum
Go to
It is currently 15 Jun 2024, 12:07

All times are UTC

Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 11 Mar 2023, 01:43 

Joined: 09 May 2018, 14:22
Posts: 6
I can not get the FillSTFilterListValues to work.
I've tried the famous example and
Index := Items.IndexOfObject(PopupListboxItemEhApplyFilter);
if Index < 0 then Items.AddObject('Apply Filter', PopupListboxItemEhApplyFilter);
works fine, but Sender.DefaultFillSTFilterListDataValues(Column, Values); does not.
No error but also no filter options coming from the values variable.
Values contains data - I checked that.

So please can anyone give an example of how to get that to work without a memtable but with UniDAC?
EhLibUniDAC is in uses claues. Do I need any other or is this not the problem?

P.S: the forum filter sadly is actually no help because every usefull word like STFilter or even FillSTFilterListValues is marked as too common and nulled out.

PostPosted: 14 Mar 2023, 11:15 

Joined: 08 May 2014, 18:06
Posts: 667

You can use the following bundle of components
TDataSource (DataSet = MemTableEh1)->
TMemTableEh (DataDriver = DataSetDriver1)->
TDataSetDriver (ProviderDataSet = YourDataSet)

To take advantage of TMemTableEh and store data in your DataSet.

In order to be able to fill the list of values in the filtering drop-down list in DataSets other than TMemTableEh,
it is necessary that the FillSTFilterListDataValues method be implemented in the TXXXDatasetFeaturesEh class.

This method is not implemented in the EhLibUniDAC unit in the TUniDatasetFeaturesEh class.

For an implementation example, see the TADDatasetFeaturesEh.FillSTFilterListDataValues class from EhLibAnyDAC.pas

Best regards
EhLib Support Team

PostPosted: 14 Mar 2023, 12:21 

Joined: 09 May 2018, 14:22
Posts: 6
I wasn't aware of the second part.
But I think this will help me.

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 1 guest

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