TUniTable difference between Filter and FilterSQL

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
testpresta
Posts: 32
Joined: Sat 07 Jun 2014 19:41

TUniTable difference between Filter and FilterSQL

Post by testpresta » Thu 12 Jun 2014 09:57

Hello

What is the difference between filter and filtersql properties on TuniTable ?
Filter does not seems to work.
Is it possible to automatically call FilterSQL when Filter is called ?

Thanks

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: TUniTable difference between Filter and FilterSQL

Post by AlexP » Thu 12 Jun 2014 10:24

Hello,

If the condition is set in the Filter property (and the Filtered property is set to True), data is filtered locally; if the condition is set in FilterSQL - this condition is added to the WHERE clause of the query, and the query with the condition is executed on the server.

andrewsvaz
Posts: 12
Joined: Fri 04 Apr 2014 18:50

Re: TUniTable difference between Filter and FilterSQL

Post by andrewsvaz » Mon 16 Jun 2014 16:11

Interesting, but I am porting some apps and I have noticed that I can't make the filter property work either, only the FilterSQL.

Wierd, to say the least.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: TUniTable difference between Filter and FilterSQL

Post by AlexP » Tue 17 Jun 2014 11:51

Please describe in more details the problems you have faced with when using the Filter property - and we will try to help you solve them.

CristianP
Posts: 79
Joined: Fri 07 Dec 2012 07:44
Location: Timișoara, Romania

Re: TUniTable difference between Filter and FilterSQL

Post by CristianP » Wed 18 Jun 2014 11:07

AlexP wrote:Please describe in more details the problems you have faced with when using the Filter property - and we will try to help you solve them.
For example when I moved from dbx to UniDAC I changed to FilterSQL because Filter does not support Lower(). TClientDataSet does. It was a little hassle but was faster to implement than other options.
Maybe there is something similar with @andrewsvaz.

Best Regards,
Cristian Peta

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: TUniTable difference between Filter and FilterSQL

Post by AlexP » Thu 19 Jun 2014 10:25

We have added a possibility to use Lower and Upper methods in the Filter property. This feature will be included to the next version.

CristianP
Posts: 79
Joined: Fri 07 Dec 2012 07:44
Location: Timișoara, Romania

Re: TUniTable difference between Filter and FilterSQL

Post by CristianP » Fri 20 Jun 2014 10:36

AlexP wrote:We have added a possibility to use Lower and Upper methods in the Filter property. This feature will be included to the next version.
Thank You.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: TUniTable difference between Filter and FilterSQL

Post by AlexP » Fri 20 Jun 2014 11:19

You are welcome. Feel free to contact us if you have any further questions.

Post Reply