#23651 - 08/18/10 07:28 AM
Grid View How to insert a field from another table
|
Edward Chris Chin-Mook
Registered: 09/29/09
Posts: 400
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]
|
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
|
|
|
|
#23665 - 08/18/10 09:49 AM
Re: Grid View How to insert a field from another table
[Re: chinmook]
|
Edward Chris Chin-Mook
Registered: 09/29/09
Posts: 400
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]
|
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]
|
Edward Chris Chin-Mook
Registered: 09/29/09
Posts: 400
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]
|
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]
|
Edward Chris Chin-Mook
Registered: 09/29/09
Posts: 400
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]
|
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 (82 downloads)
Edited by Andrew Bates (08/19/10 02:43 PM) Edit Reason: Improved Workspace
_________________________
Andrew Bates
|
Top
|
|
|
|
#23698 - 08/19/10 06:12 PM
Re: Grid View How to insert a field from another table
[Re: BAMPH]
|
Adagio Master
Registered: 03/16/99
Posts: 10504
Loc: Canada
|
Hi Peter, You're right, the "Cat" prefix is not necessary for the solution, but I prefixed the string from the Category file with "Cat" so that it is obvious in the named item file that this refers to a category code (on the assumption that there may be other values in the file). In addition, it lets you trap an empty value with having to use an IF() statement. Cat=** Empty entry ** since GETNAMEDITEM() returns and empty string if the value isn't found, you could also use:
IF(GETNAMEDITEM("Cat"&TRIM({Category}))="","!("&TRIM({Category})&") IS UNDEFINED!",GETNAMEDITEM("Cat"&TRIM({Category}))
which would highlight when the table needs updating.
_________________________
Andrew Bates
|
Top
|
|
|
|
#23701 - 08/20/10 05:13 AM
Re: Grid View How to insert a field from another table
[Re: Retired_Guy]
|
Edward Chris Chin-Mook
Registered: 09/29/09
Posts: 400
Loc: Jamaica
|
Thank you Andrew, I now understand, had a bit of a glitch as I had not updated my test bed machine with the latest Adagio Invoice release version 9.0 so the INSalesDtls.gv was not opening.
Can't beat having a practical demo file.
Real time support like this sets Adagio Accounting into a class by itself.
One Love...
_________________________
Edward C Chin-Mook 10 Waterloo Ave, Kingston 10, Jamaica 876-754-7444 876-754-5513
|
Top
|
|
|
|
|
1 registered (Softrak Support),
82
Guests and
0
Spiders online. |
Key:
Admin,
Global Mod,
Mod
|
|
1873 Members
5 Forums
14529 Topics
70939 Posts
Max Online: 432 @ 01/20/25 10:17 PM
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|