Page 1 of 3 1 2 3 >
Topic Options
#7549 - 09/21/06 10:35 AM Good resource for GridView?
Nick Sciabica Offline
Adagio Buff

Registered: 03/22/04
Posts: 74
Loc: Modesto, CA 95350
I am looking for a good resource to help me learn GridView. Essentially I would like dozens of examples of filters, each with descriptions of what each part accomplishes. In addition I would like to learn how to set up requests for fields so that when some one else brings up the view it will ask for a date range, or item number range. I have been running in to trouble, thinking that I have set everything up correctly, verifying ok, then getting no results in the view, or all results.

I have read through the manual, but find that GridView alone could easily warrent a textbook.

Top
#7550 - 09/21/06 12:24 PM Re: Good resource for GridView?
Retired_Guy Offline
Adagio Master

Registered: 03/16/99
Posts: 10504
Loc: Canada
Hi Nick,

Two quick ways to get off the ground. Use either or both the "Adagio Expert Online" and "Introduction to GridView" webinars to work through a specific view or problem. Try and describe the View you are trying to create in the "I want to know..." question box when you register. For example:
  • ...how to prompt the user for one of more values to filter a View?
  • ...how to filter my transactions to show only those older than 60 days?
  • ...how to see all the items a customer bought this month?
_________________________
Andrew Bates

Top
#7551 - 09/21/06 12:49 PM Re: Good resource for GridView?
Wally Kunz Offline
Adagio Scholar

Registered: 11/16/01
Posts: 96
Loc: Vancouver, BC Canada
Just a thought on how you may be coming up empty.

Could it be that you are not being as precise as needed in filters when you use "And" and "Or"? In English, you can say "Show me the clients in CA and NV" and people would understand that you want to see the clients in CA and the clients in NV, but the computer interprets it as "Show me any client who is in both CA and NV". Since no client record can be in CA and in NV at the same time, your filter won't let any records through.

What you need to say is "Show me the clients in CA or NV" which will be interpreted as "Show me any client in CA and show me any client in NV".

Make sense?
_________________________
Wally Kunz
Softrak Systems Inc

Top
#7552 - 09/21/06 01:37 PM Re: Good resource for GridView?
Ralph Allan Offline
Adagio Virtuoso

Registered: 06/02/04
Posts: 694
Loc: Prince George BC
Nick,

Have a look here: GridView "Quickies" from Business Computer Cdentre for some examples of formulas and filters.
_________________________
Ralph Allan
Business Computer Centre
Prince George BC Canada

Top
#7553 - 09/21/06 05:42 PM Re: Good resource for GridView?
Softrak Support Offline

Adagio Action Team

Registered: 03/09/99
Posts: 11448
Loc: Vancouver, BC Canada
Hi Nick,

Here are 2 GridView 'quickies':

- When using the QueryString function to ask for runtime entry of text (item numbers, customers, etc) and comparing to your data, matching has to be exact, including leading and trailing spaces. Change your filter to 'trim' spaces from your data field value:
Trim({Item number}) = QueryString("Enter the item number")

- If you refresh a View with a filter and get a blank screen as a result, you can toggle the filter button off from the toolbar. This will load the entire database into your view without any filters. If the file is large then this could take some time to refresh, so use prudence if you do this. And remember to turn the filter toggle back on when you want to determine your filter is working.

And one other note. If you are using the runtime query for item numbers to search for all records equal to one or more codes in a file such as OrderEntry or SalesAnalysis (which can be very large files), consider using a link rather than a runtime query; performance is significantly faster. So instead of having a single view based on SalesAnalysis transactions and a query asking for the item code, include a second view on the item master file and link it to the transaction view (by item number) that you already have - and save as a workspace. Then you can double-click to get the same list much faster. And also you can multi-select items from the main list and do a query for multiple item codes at once.
_________________________
Regards,
Softrak Tech Support

Top
#7554 - 09/22/06 11:01 AM Re: Good resource for GridView?
Nick Sciabica Offline
Adagio Buff

Registered: 03/22/04
Posts: 74
Loc: Modesto, CA 95350
Quote:

Just a thought on how you may be coming up empty.

Could it be that you are not being as precise as needed in filters when you use "And" and "Or"? In English, you can say "Show me the clients in CA and NV" and people would understand that you want to see the clients in CA and the clients in NV, but the computer interprets it as "Show me any client who is in both CA and NV". Since no client record can be in CA and in NV at the same time, your filter won't let any records through.

What you need to say is "Show me the clients in CA or NV" which will be interpreted as "Show me any client in CA and show me any client in NV".

Make sense?




Yes, that does make sense. However, my problem is not with logic, but rather with formating. I am not sure when to trim, or how to format a trim, or how the "trx codes" in inventory work. For example, both Assembly Masters and Shipments get a "trx code" of 1. How do I limit the view to only Assembly Masters?

I also can not figure out how to make a veiw "ask me" for a range of items numbers or dates upon refresh.

I assume that the webinars are going to be my "go to" for learning these aspects.

I appreciate everyone's input.

Top
#7555 - 09/22/06 01:31 PM Re: Good resource for GridView?
Retired_Guy Offline
Adagio Master

Registered: 03/16/99
Posts: 10504
Loc: Canada
To have the View "ask you" for a range of item numbers, use this fiter:

Code:

AND(
UPPER(TRIM({Item #}))>=UPPER(TRIM(QUERYSTRING("Starting item?", ""))),
UPPER(TRIM({Item #}))<=UPPER(TRIM(QUERYSTRING("Ending item?", "zzzzzzzzzzzzzzzz")))
)


For date ranges use "=QUERYDATE()".

I asked the same question about the transaction codes in IC history the other day. Here are the values:
Code:

Trx Trx
Src Type Description
1 1 Receipt
1 2 Receipt adjustment
1 3 Receipt return
2 1 Shipment
2 2 Shipment return
3 1 Adjustment credit
3 2 Adjustment debit
4 1 Stock transfer from
4 2 Stock transfer to
5 1 Component item assembly
5 2 Master item assembly



Hope that helps.
_________________________
Andrew Bates

Top
#7556 - 09/22/06 06:19 PM Re: Good resource for GridView?
Softrak Support Offline

Adagio Action Team

Registered: 03/09/99
Posts: 11448
Loc: Vancouver, BC Canada
And for some codes like these in IC Transaction History, make sure you turn on the 'Translate coded fields' option in the View definition (F4 to edit this). Some of these numeric fields are designed with the value description built-in, so '1' turns into 'Receipt', '2' into 'Shipment' and so on.
_________________________
Regards,
Softrak Tech Support

Top
#7557 - 09/26/06 10:55 AM Re: Good resource for GridView?
Cary Offline
Adagio Buff

Registered: 07/03/06
Posts: 51
How about if someone wrote a "GridView for Dummies" book. I'll volunteer as a model for the front cover.

Top
#7558 - 09/28/06 10:32 AM Re: Good resource for GridView?
Nick Sciabica Offline
Adagio Buff

Registered: 03/22/04
Posts: 74
Loc: Modesto, CA 95350
Quote:

How about if someone wrote a "GridView for Dummies" book. I'll volunteer as a model for the front cover.




I'll take the photo.

Top
Page 1 of 3 1 2 3 >


Moderator:  Christa_Meissner 
Who's Online
1 registered (Tanya_Belanger), 72 Guests and 0 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
1862 Members
5 Forums
14383 Topics
70343 Posts

Max Online: 432 @ 01/20/25 10:17 PM
January
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 31