Column BackColor in a matrix

vanwero
Member Posts: 28
Hi you all,
is it possible te give a specific column in a matrix a color?
In my matrix the columns represents a date and I want to give the weekends and hollidays a red color for example! Is this possible for a matrix?
Greets and thanks!
is it possible te give a specific column in a matrix a color?
In my matrix the columns represents a date and I want to give the weekends and hollidays a red color for example! Is this possible for a matrix?
Greets and thanks!
0
Comments
-
Perhaps this should be in an FAQ or something... ;-)
Columns in a table box can be given a background colour at design time; in a matrix box you can only assign a background colour to all columns in the right-hand side pane not at run-time at design-time.
At run-time, you cannot change these background colours.Kind regards,
Jan Hoek
Product Developer
Mprise Products B.V.0 -
Hi,
I had this same issue, but decided to change the forecolor of the text within the matrix on weekends - seems to work ok.
You need to do this on the OnFormat trigger.
HTH.0 -
For Instance on The Absence Overview By Period Matrix
if "Total Absence">0 then
begin
CurrForm."Total Absence".UPDATEFORECOLOR(255);
CurrForm."Total Absence".UPDATEFONTBOLD(true)
End;
will Make the Absences BOLD and RED (ForeColour)
However, to change the BackColour , you may simply Make it Selected e.g
CurrForm."Total Absence".UPDATESELECTED(true);
Add your codes to OnFormat Trigger of the TextBox in Quaestion
This will simply Reverse the Cell Colour.
On the other hand, if you want to "Paint" the whole Column, then you will not need a condition.Sunday, Godwin G0 -
Although the options are limited, you could conditionally set the cell property SELECTED as follows
IF <Condition> THEN
BEGIN
CurrForm.<MatrixControl>.UPDATEFORECOLOR(255);
CurrForm.<MatrixControl>.UPDATESELECTED(TRUE);
END;
It will only highlight the cell with a BLUE background, but makes things easily identifiable.
\:D/Darren Beetlestone0
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