Previous Thread
Next Thread
Print Thread
Page 1 of 2 1 2
Joined: Sep 2009
Posts: 410
Edward Chris Chin-Mook
Edward Chris Chin-Mook
Joined: Sep 2009
Posts: 410
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
Joined: Mar 1999
Posts: 10,504
Adagio Master
Adagio Master
Joined: Mar 1999
Posts: 10,504
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
Joined: Mar 1999
Posts: 11,763
Adagio Action Team
Adagio Action Team
Joined: Mar 1999
Posts: 11,763
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
Joined: Sep 2009
Posts: 410
Edward Chris Chin-Mook
Edward Chris Chin-Mook
Joined: Sep 2009
Posts: 410
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
Joined: Mar 1999
Posts: 10,504
Adagio Master
Adagio Master
Joined: Mar 1999
Posts: 10,504
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
Joined: Sep 2009
Posts: 410
Edward Chris Chin-Mook
Edward Chris Chin-Mook
Joined: Sep 2009
Posts: 410
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
Joined: Mar 1999
Posts: 10,504
Adagio Master
Adagio Master
Joined: Mar 1999
Posts: 10,504
The file containing the "named items" can be specified on the command line ("/n parameter") or in the defaults dialog.


Andrew Bates
Joined: Sep 2009
Posts: 410
Edward Chris Chin-Mook
Edward Chris Chin-Mook
Joined: Sep 2009
Posts: 410
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
Joined: Mar 1999
Posts: 10,504
Adagio Master
Adagio Master
Joined: Mar 1999
Posts: 10,504
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 (12.65 KB, 128 downloads)

Last edited by Andrew Bates; 08/19/10 07:43 PM. Reason: Improved Workspace

Andrew Bates
Joined: Jul 2001
Posts: 912
Paradise is perspective
Paradise is perspective
Joined: Jul 2001
Posts: 912
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
Page 1 of 2 1 2

Moderated by  Softrak Support 

Link Copied to Clipboard
Who's Online Now
0 members (), 37 guests, and 3 robots.
Key: Admin, Global Mod, Mod
Forum Statistics
Forums5
Topics14,683
Posts71,655
Members1,875
Most Online1,408
Dec 9th, 2025
November
S M T W T F S
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
Powered by UBB.threads™ PHP Forum Software 8.0.0