Topic Options
#68504 - 07/31/22 06:34 AM Gridview - Help to Select multiple items
chinmook Offline
Edward Chris Chin-Mook

Registered: 09/29/09
Posts: 377
Loc: Jamaica
Hi Team,

I am writing a view to select the items below from a table, is there another way to arbitrarily select multiple items from a database instead of using "OR". My past experience that work well was for say 2 - 4 items but now I am not finding all records in the Filter of 21 items...??

Any HELP welcomed...

One Love...

Edward.

Actual Filter in use:

AND(
{Station}= 1
,
{Line Type} = 2
,
OR (
TRIM ({Item #}) = "AA0301",
TRIM ({Item #}) = "AB0071",
TRIM ({Item #}) = "AC0041",
TRIM ({Item #}) = "AD0001",
TRIM ({Item #}) = "AE0045",
TRIM ({Item #}) = "AF0001",
TRIM ({Item #}) = "AG0003",
TRIM ({Item #}) = "AH0006",
TRIM ({Item #}) = "AI0011",
TRIM ({Item #}) = "AJ0701",
TRIM ({Item #}) = "AK0041",
TRIM ({Item #}) = "AL0201",
TRIM ({Item #}) = "AM0301",
TRIM ({Item #}) = "AN7001",
TRIM ({Item #}) = "AP0081",
TRIM ({Item #}) = "AQ0901",
TRIM ({Item #}) = "AR5001",
TRIM ({Item #}) = "AS0091",
TRIM ({Item #}) = "AT0011",
TRIM ({Item #}) = "AU0601",
TRIM ({Item #}) = "AZ0101"

)
,
{Date} >= Querydate("Enter Start Date YYYYMMDD", DATE(2022,06,01))
,
{Date} <= Querydate("Enter End Date YYYYMMDD", DATE(2022,06,30))
)
_________________________
Edward C Chin-Mook
10 Waterloo Ave, Kingston 10, Jamaica
876-754-7444
876-754-5513

Top
#68505 - 07/31/22 10:08 AM Re: Gridview - Help to Select multiple items [Re: chinmook]
Steve Schwartz Offline
Adagio God

Registered: 03/10/02
Posts: 4445
Loc: Wynnewood, PA
Hi Edward

You don’t want to hardcode such a list into a View.

You want to pick a field in the item master table, for example Report Group ( or an optional field) and have the users enter something in that field for items to be selected.

Then the view filter is simply

{Report Group} = “x” (or whatever the user enters into that field).

Not only is the filter simpler, but the View doesn’t have to be edited to modify the list.

Steve


Top
#68506 - 08/01/22 06:24 AM Re: Gridview - Help to Select multiple items [Re: Steve Schwartz]
chinmook Offline
Edward Chris Chin-Mook

Registered: 09/29/09
Posts: 377
Loc: Jamaica
Hi Steve

THANK YOU SO MUCH... understood.


ONE LOVE
Edward
_________________________
Edward C Chin-Mook
10 Waterloo Ave, Kingston 10, Jamaica
876-754-7444
876-754-5513

Top


Moderator:  Christa_Meissner 
Who's Online
0 registered (), 75 Guests and 0 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
1847 Members
5 Forums
14236 Topics
69711 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