quantity by dimension
                
                    bangswit                
                
                    Member Posts: 265                
            
                        
            
                    does any of you have tips n trick how to create report to export to excell
quantity by dimension
using dimension 1 & dimension 2....
I will not using analisys by dimension
                quantity by dimension
using dimension 1 & dimension 2....
I will not using analisys by dimension
0                
            Comments
- 
            as i mention
the red one is global dimension 1
the blue one is global dimension 2
the green one is quantity in Purchase Line (table 39)
how can i made report like this to excel?0 - 
            You can use the excel buffer table with two variable instances of the dimension tables.
Here is an example of how to use the Excel Buffer
http://www.mibuso.com/dlinfo.asp?FileID=596
Just a question: does Navision support legal requirements of the Vatican City?0 - 
            Mark Brummel wrote:You can use the excel buffer table with two variable instances of the dimension tables.
Here is an example of how to use the Excel Buffer
http://www.mibuso.com/dlinfo.asp?FileID=596
Just a question: does Navision support legal requirements of the Vatican City?
ok
i will try to take a look
nope, i'm not from vatican
just like that place0 - 
            I think this is the simple one
i want to ask how to get the quantity, by combine that dimension 1 and dimension 2
thanks0 - 
            I think you ask to much of a free forum of volunteers.
Before you post a questions like this, first try to bake some C/AL code yourself first.0 - 
            i already made the code
but failed0 - 
            i forget to share the code
Dimension Value - OnPreDataItem() Cylinder.SETRANGE(Cylinder."Global Dimension No.",2); Cylinder.FIND('-'); i:= 1; REPEAT LocName[i] := Cylinder.Code; i:= i +1; UNTIL (Cylinder.NEXT = 0); Dimension Value - OnAfterGetRecord() i:=1; Cylinder.FIND('-'); REPEAT Item.SETRANGE(Item."Global Dimension 1 Filter",SPH.Code); Item.SETRANGE(Item."Global Dimension 2 Filter",Code); Item.CALCFIELDS(Item."Qty. on Purch. Order"); IF Item.FIND('-') THEN BEGIN AmountLoc[i]:= FORMAT(Item."Qty. on Purch. Order"); LocName[i] := Cylinder.Code; i:= i + 1; END ELSE BEGIN AmountLoc[i]:= ''; i:=i; END; UNTIL (Cylinder.NEXT = 0);0 - 
            And where does it go wrong?
IMHO you need a multi dimensional array (AmountLoc[x],[y])
When this is populated you can move the value of this array to excel using the buffer table.0 - 
            Mark Brummel wrote:And where does it go wrong?
IMHO you need a multi dimensional array (AmountLoc[x],[y])
When this is populated you can move the value of this array to excel using the buffer table.
that's it
how to do multidimensional array
my CAL Global
Name DataType Subtype Length
AmountLoc Text 300 - 
            In the properties of the variable you can define the dimensions with a comma.
http://dynamicsuser.net/blogs/mark_brum ... rrays.aspx0 - 
            
Argh... you should have post it to another topic some weeks ago.Mark Brummel wrote:
Anyway, thanks for explanation! You're doing a great job."Money is likewise the greatest chance and the greatest scourge of mankind."0 - 
            still confuse how to meets dimension 1 & dimension 2....0
 - 
            for example
dimension 1 = A & B & C
dimension 2 = 1 & 2 & 3
item ABC (dimension 1 = A,dimension 2 = 1),qty on Purchase order = 10
item XYZ (dimension 1 = B,dimension 2 = 2),qty on Purchase order = 5
Item XXX (dimension 1 = B,dimension 2 = 1),qty on Purchase order = 13
so it would be like this
A B C
1 10 13
2 5
3
is there something wrong with my code?Purchase Line - OnPreDataItem() dim1.SETRANGE(dim1."Global Dimension No.",1); dim1.FIND('-'); i:= 1; REPEAT dim1Name[i] := dim1.Code; i:= i +1; UNTIL (dim1.NEXT = 0); dim2.SETRANGE(dim2."Global Dimension No.",2); dim2.FIND('-'); i:= 1; REPEAT dim2Name[i] := dim2.Code; i:= i +1; UNTIL (dim2.NEXT = 0); Purchase Line - OnAfterGetRecord() i:=1; dim2.FIND('-'); REPEAT SETRANGE("Shortcut Dimension 2 Code",dim2.Code); n:= 1; REPEAT SETRANGE("Shortcut Dimension 1 Code",dim1.Code); IF FIND('-') THEN CALCSUMS(Quantity); AmountLoc[n]:= FORMAT(Quantity); UNTIL NEXT = 0; dim2Name[i] := dim2.Code; i:= i + 1; UNTIL (dim2.NEXT = 0);0 
Categories
- All Categories
 - 73 General
 - 73 Announcements
 - 66.7K 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
 - 323 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
 
