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
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?
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.
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.
Last edited by Andrew Bates; 08/19/1007:43 PM. Reason: Improved Workspace
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