Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 28 Mar 2024, 13:15

All times are UTC




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

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.


Top
 Profile  
 
PostPosted: 14 Mar 2023, 11:15 
Offline

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

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

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

2.
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


Top
 Profile  
 
PostPosted: 14 Mar 2023, 12:21 
Offline

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


Top
 Profile  
 
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: Bing [Bot], Google [Bot] and 54 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