Topic Options
#36313 - 03/29/13 03:16 PM Gridview Filter
SusanTennier Offline
Adagio Maestro

Registered: 02/22/08
Posts: 1247
Loc: Ontario, Canada
I want to filter out:

{Comments 2} that contain the text "ABC"

Can anyone help?
_________________________
Susan Tennier
TDL Canada
Trenton, Ontario

Top
#36314 - 03/29/13 03:41 PM Re: Gridview Filter [Re: SusanTennier]
Steve Schwartz Offline
Adagio God

Registered: 03/10/02
Posts: 4446
Loc: Wynnewood, PA
FIND("ABC", {Comments 2}, 1) will return a 0 if ABC is not contained in {Comments 2}. If it is contained, it will return the position of the A, which will be a number higher than 0.

The "1" parameter tells it to search the whole field. If you put a higher number there, it will only search from that position on.

Steve

PS - Thanks to Leigh for teaching me this a few days ago, I haven't had a chance yet to forget it!

Top
#36315 - 03/29/13 04:15 PM Re: Gridview Filter [Re: Steve Schwartz]
SusanTennier Offline
Adagio Maestro

Registered: 02/22/08
Posts: 1247
Loc: Ontario, Canada
HI Steve,

So I added a column and I'm getting the results, 0 and 1. How do I filter out 0 now?

I tried {Name of Column} = 1 but it's not working.
_________________________
Susan Tennier
TDL Canada
Trenton, Ontario

Top
#36316 - 03/29/13 07:24 PM Re: Gridview Filter [Re: SusanTennier]
Bruce Gardner Offline
Adagio Wizard

Registered: 06/15/04
Posts: 3500
Loc: Toronto ON, Canada
Susan:
You don't need to add a column (though it's initially useful to verify that you have the formula working). You need to add a Filter (or add to an existing Filter) where you include only records where the result of Steve's formula = 0.
_________________________
Bruce Gardner
ARX Business Solutions Inc.

Top
#36350 - 04/02/13 12:38 PM Re: Gridview Filter [Re: Bruce Gardner]
Softrak Support Offline

Adagio Action Team

Registered: 03/09/99
Posts: 11313
Loc: Vancouver, BC Canada
Hi Susan,

If you want to select the rows where ABC is found in the Comments 2 field, use the FIND formula Steve indicated in a filter where the result is >0. If you want to select rows that don't have ABC in the Comments 2 field, use the same FIND formula but =0.

Filter 'Comments with ABC': FIND("ABC", {Comments 2}, 1) >0
Filter 'Comments without ABC': FIND("ABC", {Comments 2}, 1) =0
_________________________
Regards,
Softrak Tech Support

Top


Moderator:  Christa_Meissner 
Who's Online
0 registered (), 68 Guests and 0 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
1847 Members
5 Forums
14237 Topics
69716 Posts

Max Online: 359 @ 11/18/19 09:08 PM
April
Su M Tu W Th F Sa
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30