Matrix box based on temporary tables

rixrix
Member Posts: 121
Hello ...
I really did search on all mibuso + web, but can not manage how to do it ...
I have one TEMPORARY table with these colunms: Id1, Id2, Value
I would like to have this displayed in matrix Box.
So "vertical part" will be distinct selection of Id1
"horizontal part (headings)" will be distinct selection of Id2
And values in matrix will be taken from column "Value" (or sum of it, if there are more same Id1,Id2 lines)
for example Id1=Customer Id, Id2=Month, Value=Turnover
Is this possible?
(I manged to run matrix box with normal tables, but have problems with TEMPORARY ones")
P.S. If needed, I can split data among three temporary tables ....
Thank you in advance
I really did search on all mibuso + web, but can not manage how to do it ...
I have one TEMPORARY table with these colunms: Id1, Id2, Value
I would like to have this displayed in matrix Box.
So "vertical part" will be distinct selection of Id1
"horizontal part (headings)" will be distinct selection of Id2
And values in matrix will be taken from column "Value" (or sum of it, if there are more same Id1,Id2 lines)
for example Id1=Customer Id, Id2=Month, Value=Turnover
Is this possible?
(I manged to run matrix box with normal tables, but have problems with TEMPORARY ones")
P.S. If needed, I can split data among three temporary tables ....
Thank you in advance
0
Comments
-
+ 1 other question
Is it possible tu show MatrixBox on RequestOptionsForm?
I tried simple example from NAV "help", but it gives me error: Property ???1 not defined in property list
It is caused by experssion: RequestOptionsForm.Matrix.MatrixRec.Number ...
In normal form, everything works ok ... (of course expression is: Currfom.Matrix ....)
Thank you0 -
Hello rixrix,
I think it's possible, but it will be awful code, though. For reference I would recommend to have a look at the Account Schedule Matrix form for instance, this calculates cell values in a temporary buffer table (in CU 8 ). You can use a similar structure. The main problem would be to assign a temporary table to the SourceTable and MatrixSourceTable properties of the form. To solve this I would recommend to add code in the OnOpenForm(), OnFind() and OnNext() triggers, respectively to route the access to the temporary table. I would try to avoid such code, though.
with best regards
Jens0
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
- 320 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