Matrix form Restrictions

gopalach77
Member Posts: 18
hi,
I would like to restrict the coulmns in a matrix form, based on a flowfield. is it possible?
for ex:
CurrForm.ItemAvailMatrix.MatrixRec.CALCFIELDS(inventory);
IF CurrForm.ItemAvailMatrix.MatrixRec.inventory <> 0 THEN
MatrixHeader := CurrForm.ItemAvailMatrix.MatrixRec."No.";
I would like to restrict the coulmns in a matrix form, based on a flowfield. is it possible?
for ex:
CurrForm.ItemAvailMatrix.MatrixRec.CALCFIELDS(inventory);
IF CurrForm.ItemAvailMatrix.MatrixRec.inventory <> 0 THEN
MatrixHeader := CurrForm.ItemAvailMatrix.MatrixRec."No.";
0
Comments
-
I didn't completely understand what you mean, but if you mean to resize the columns programmatically, it is not possible.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
If you mean display part A, Part C, Part F in the column header
because they have inventory but do not show
part B, part D, and part E because they have no inventory and
you end up with columns in your matrix of: A C F
You can do this. It is controlled on the Matrix control OnFindRecord trigger and OnNextRecord trigger
You need to skip the ones that don't meet your criteria.
This is advanced programming in that you need to understand how the onfind and onnext work.
If you look at any of the matrix forms that use the date in the matrix header you will see it calls a function in the onfind and onnext,
That should give you the clues you need.
Good luck
Steve0 -
hi steve,
you got my question i will try and come back incase i do not find a solution.
thanks
gk0 -
If the inventory field is a calculated field of the table that generates the columns, you can put a filter on it:
CurrForm.ItemAvailMatrix.MatrixRec.SETFILTER(inventory,'<>0');
See also http://www.mibuso.com/howtoinfo.asp?FileID=13 to know where to put the filter.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0
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