Page 1 of 2 1 2 >
Topic Options
#23651 - 08/18/10 07:28 AM Grid View How to insert a field from another table
chinmook Offline
Edward Chris Chin-Mook

Registered: 09/29/09
Posts: 390
Loc: Jamaica
Hi Guys,

Doing a GV and need to incorporate a field from a linked or joined Table. I have grouped my invoice line items by category, but I need to display the category description instead of the category numbers to make the report complete.

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

Top
#23654 - 08/18/10 08:05 AM Re: Grid View How to insert a field from another table [Re: chinmook]
Retired_Guy Offline
Adagio Master

Registered: 03/16/99
Posts: 10504
Loc: Canada
Hello Edward,

You can't current;y do that without our assistance. You need a composite table that links the OELINE to the IC Category file. Are you generating this report of the current or historical order entry file?
_________________________
Andrew Bates

Top
#23657 - 08/18/10 08:16 AM Re: Grid View How to insert a field from another table [Re: Retired_Guy]
Softrak Support Offline

Adagio Action Team

Registered: 03/09/99
Posts: 11550
Loc: Vancouver, BC Canada
If all you want to do is have a category description, it is possible to use a Named Items file in order to provide the 'Translation'. You could enter them manually via the Named Items function, and then use a Calculated Column to display the descriptions.
_________________________
Regards,
Softrak Tech Support

Top
#23665 - 08/18/10 09:49 AM Re: Grid View How to insert a field from another table [Re: chinmook]
chinmook Offline
Edward Chris Chin-Mook

Registered: 09/29/09
Posts: 390
Loc: Jamaica
I am linking Adagio Invoices - Q/I History Detail Master table.

This is a report which has to be re-produced on the fly ((many many times)) can not ask clients to key in the Category Description.
_________________________
Edward C Chin-Mook
10 Waterloo Ave, Kingston 10, Jamaica
876-754-7444
876-754-5513

Top
#23667 - 08/18/10 09:58 AM Re: Grid View How to insert a field from another table [Re: chinmook]
Retired_Guy Offline
Adagio Master

Registered: 03/16/99
Posts: 10504
Loc: Canada
Hello Edward,

How many Categories does the database have? How often are new Categories added?

Read about the =GETNAMEDITEM() function and create a list of the form (in a file or through the define Named items menu choice):

[NamedItems]
ABC=Category Description 1
DEF=Category Description 2

and then use the calculated column =GETNAMEDITEM({Item Category}).

_________________________
Andrew Bates

Top
#23670 - 08/18/10 10:28 AM Re: Grid View How to insert a field from another table [Re: Softrak Support]
chinmook Offline
Edward Chris Chin-Mook

Registered: 09/29/09
Posts: 390
Loc: Jamaica
Can you send me some details on how to connect the named items file- fields to my workspace.

What I did was put category code and description.

Calculated Worksheet is where I am coming up on the challenge.
Reading the manual again
_________________________
Edward C Chin-Mook
10 Waterloo Ave, Kingston 10, Jamaica
876-754-7444
876-754-5513

Top
#23671 - 08/18/10 10:39 AM Re: Grid View How to insert a field from another table [Re: chinmook]
Retired_Guy Offline
Adagio Master

Registered: 03/16/99
Posts: 10504
Loc: Canada
The file containing the "named items" can be specified on the command line ("/n parameter") or in the defaults dialog.
_________________________
Andrew Bates

Top
#23676 - 08/19/10 05:45 AM Re: Grid View How to insert a field from another table [Re: Retired_Guy]
chinmook Offline
Edward Chris Chin-Mook

Registered: 09/29/09
Posts: 390
Loc: Jamaica
Andrew can you send me a demo gv using the function in a calculated column. Just can not seem to get it to work. ((This one has stumped me.))
_________________________
Edward C Chin-Mook
10 Waterloo Ave, Kingston 10, Jamaica
876-754-7444
876-754-5513

Top
#23691 - 08/19/10 12:26 PM Re: Grid View How to insert a field from another table [Re: chinmook]
Retired_Guy Offline
Adagio Master

Registered: 03/16/99
Posts: 10504
Loc: Canada
Hello Edward,

Here is a ZIP contianing a GV workspace and an Excel spreadsheet to show you how this works. Here's what you need to know:
  • There are two Views in the workspace, one showing IN history detail lines that contain a Category, and a simple "DUMP" of the IC Category file. The history detail lines have a formula that displays a category description using the GETNAMEDITEM() function and selects only those lines that actually contain a category code.
  • You need to create a file of the form of CatList.GVNames. An easy way to do this is to ExcelDirect the Category View, Copy the third column (Headed "[NamedItems]") and paste it into a text file with a GVNames extension. Load this file into your GridView workspace using Edit | Named Items (F3). (Its name can be specified on the command line so the user does not have to remember to do this using the "/N" parameter).
  • Maintain as necessary.

Hopefully you can figure this out from the building blocks provided here.


Attachments
NameListDemo.zip (73 downloads)



Edited by Andrew Bates (08/19/10 02:43 PM)
Edit Reason: Improved Workspace
_________________________
Andrew Bates

Top
#23697 - 08/19/10 06:06 PM Re: Grid View How to insert a field from another table [Re: Retired_Guy]
BAMPH Offline
Paradise is perspective

Registered: 07/15/01
Posts: 875
Loc: Christ Church, BARBADOS
Hi Edward,

Just a few notes:
<1> I'm not quite sure why he did it, but I don't believe that the "Cat" prefix that Andrew used in the actual list in the NamedItems text file "CatList.GVNames" in his demo example is "required". Now don't get me wrong, it is required due to the way he has configured the demo, I just did not want you to think that the prefix was a requirement in all uses of this function. Not that you would have thought that but some might.
<2> You'll definitely want to use the /n parameter but bear in mind that updating the text file and refreshing the loaded list during a GV session will not be totally automatic/dynamic so the users may need to be aware of this.
<3> Because of item <2> the questions raised above as to how often the IC categories have to be updated/maintained would be quite important to the effectiveness of the solution

Pete
_________________________
Peter Banfield
BAMPH Consulting Services
Barbados

Top
Page 1 of 2 1 2 >


Moderator:  Christa_Meissner 
Who's Online
0 registered (), 50 Guests and 0 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
1865 Members
5 Forums
14467 Topics
70662 Posts

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