Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - FilterText matching on 'Starts With'
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

FilterText matching on 'Starts With'

 Post Reply Post Reply
Author
Message
jasonl View Drop Down
Newbie
Newbie


Joined: 16 October 2009
Location: Australia
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote jasonl Quote  Post ReplyReply Direct Link To This Post Topic: FilterText matching on 'Starts With'
    Posted: 02 June 2013 at 11:57pm
The standard behavior of FilterText appears to show any ReportRecord that has a ReportRecordItem that 'contains' the FilterText.  Is it possible to have it filter on 'starts with'?

So for example, if there were 3 Records.
Apple
Banana
Orange

Using 'contains' FilterText ="A" it would show 2 records.  This is the current behavior.
Apple
Banana

Using 'starts with' FilterText ="A" it would only show 1 record.
Apple

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 03 June 2013 at 12:05am
There is a strict option, I don't have sources in-front of me at the moment, but look for the strict option.  I cant remember if there is a starts with however, I don't believe there is.
Back to Top
jasonl View Drop Down
Newbie
Newbie


Joined: 16 October 2009
Location: Australia
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote jasonl Quote  Post ReplyReply Direct Link To This Post Posted: 03 June 2013 at 12:20am
Thanks for the quick reply.  According to the documentation, FilterSeparatorStrict doesn't appear to offer 'starts with' functionality.

FilterSeparatorStrict specifies whether text filtering will compare text in the FilterText property using the logical "AND" or the logical "OR" if the FilterText property contains strings separated by spaces
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 03 June 2013 at 2:34am
As far as I know that is all there is.  It wouldn't be hard to add this extra condition yourself however.  Check the first letter before setting the text, if its false then don't set the text.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.