Totals in Matrix Forms
bull
Member Posts: 20
Hi all ,
I created a matrix form following the instructions of the mibuso link and it worked very well!
But i dont want only that .. I want to add in matrix form totals for items. The tbls i am using are: Item Variant and Location and in matrix columm i have the location code (for label) and the sum of item ledger entry qty (from Value Entry with record variable type ) for each Location Code.
example:
i create this:
item no.___Variant Code___Warehouse1___Warehouse2...
0001______black_________0_____________2__________
0001______red___________4____________3__________
i want this :
item no.___Variant Code___Warehouse1___Warehouse2......Totals
0001______black_________0_____________2____________2
0001______red___________4____________3_____________7
Totals:__________________4_____________5
The last row is not necessary.
help please [-o< ,
thanks in advance ,
Bull
I created a matrix form following the instructions of the mibuso link and it worked very well!
example:
i create this:
item no.___Variant Code___Warehouse1___Warehouse2...
0001______black_________0_____________2__________
0001______red___________4____________3__________
i want this :
item no.___Variant Code___Warehouse1___Warehouse2......Totals
0001______black_________0_____________2____________2
0001______red___________4____________3_____________7
Totals:__________________4_____________5
The last row is not necessary.
help please [-o< ,
thanks in advance ,
Bull
0
Comments
-
In that case you'll need to either make some reporting buffer table to use for the lines, use the integer table or experiment with FINDREC and NEXTREC triggers.
Have a look at the Item Statistics Buffer table. This is used to create a matrixform.
In other words: It is possible but complex.0 -
bull wrote:Hi all ,
I created a matrix form following the instructions of the mibuso link and it worked very well!
But i dont want only that .. I want to add in matrix form totals for items. The tbls i am using are: Item Variant and Location and in matrix columm i have the location code (for label) and the sum of item ledger entry qty (from Value Entry with record variable type ) for each Location Code.
example:
i create this:
item no.___Variant Code___Warehouse1___Warehouse2...
0001______black_________0_____________2__________
0001______red___________4____________3__________
i want this :
item no.___Variant Code___Warehouse1___Warehouse2......Totals
0001______black_________0_____________2____________2
0001______red___________4____________3_____________7
Totals:__________________4_____________5
The last row is not necessary.
help please [-o< ,
thanks in advance ,
Bull
Actually Mark, its quite easy 8).
The way I do it, is just to create a new SKU "ZZZZ" and location "ZZZZ" (or something similar. Then just add a flow field in the item and locaiton cards that displays the totals.
You can also add sub totals this way.David Singleton0 -
Why not start with the Total from the Item Iventory field?
Then nothing to complicated is required, just a little code and add a new field, Inventory ("Net Change" if you are using "Date Filter"), from a variable of the Item, as you are following an example, I will do a step by step:
C/AL Globals:
Create a variable Item2 ~ Record ~ Item
Code:
FORM: OnAfterGetRecord()
// Get the matching Record
Item2.GET("No.");
// Copy all filters like "date filter", Bin Filter"
Item2.COPYFILTERS(Rec);
// Clear the Location Filter
Item2.SETRANGE("Location Filter");
// Calculate the Totals
Item2.CALCFIELDS(Inventory,"Net Change");
The just add a new Text box from the toolbox at position 3, with properties:
SourceExpr=Item2.Inventory or Item2."Net Change"
DecimalPlaces = 0:5
The result should be with the Inventory from Item2!
____From Item Record_____ |______Matrix Record____________
No.____Variant___Inventory_|_____Warehouse1___Warehouse2
0001___black___________2 |______________0____________2
0001___red____________7 |________________4____________3
If they want totals at the bottom as well, copy and paste into excel, and add the totals, it could be done but it is a bit of work, and not that dynamic.
Analyst Developer with over 17 years Navision, Contract Status - Busy
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com0 -
i agree with David, thats the best way.
better not to go activate the SKU functionality and add fields and keys
just to use in this form.
David Cox wrote:Why not start with the Total from the Item Invetory field?
Nothing to complicated required, just add the field, Inventory or "Net Change" if you are using "Date Filter"
____From Item Record_____ |______Matrix Record____________
No.____Variant___Inventory_|_____Warehouse1___Warehouse2
0001___black___________2 |______________0____________2
0001___red____________7 |________________4____________30 -
hi all,
thanks all of you for your help, it was very useful and eventually it works 8) !
For the totals in the bottom , are there any other ways to do it except the excel way(??) , because i want a dynamic way to preview the totals.
thanks in advance,
bull0 -
How can I get total matrix column?
Thanks for help!!!Technico-Functional Consultant NAV
It's all about passion of Navision World0 -
How can I get total matrix per column?
Thanks for help!!!Technico-Functional Consultant NAV
It's all about passion of Navision World0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 322 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions



