IF REC."Time." IN [RVSalesSetup."W/A Color From Time 1"..RVSalesSetup."W/A Color To Time 1"] THEN
Color := 12664441
ELSE IF REC."Time." IN [RVSalesSetup."W/A Color From Time 2"..RVSalesSetup."W/A Color To Time 2"] THEN
Color := 1044500
ELSE IF Rec."Time." IN [RVSalesSetup."W/A Color From Time 3"..RVSalesSetup."W/A Color To Time 3"] THEN
Color := 2045920;
That is not possible, you can only use one "style" for one field. example favorable which is green, you can set the styleexpr to true or false by code (boolean which is set to IncludeInDataSet).
What you want to achieve is only possible with a .Net client-addin, where you generate your own TextBox Class. And this not works with page repeaters!
You should consider getting rid of it. RTC was not (yet) designed to have customized appearence.
Changing the font color is not supported. It is likely not going to be supported as it goes against one of the design principles of RTC. However as mentioned if you need colors you can use either Style or build your own control using Add-ins.
Can you pls. describe the scenario for which you need to change the font color?
“This posting is provided "AS IS" with no warranties, and confers no rights.”
Henrik Metzger, Software Development Engineer, Dynamics NAV
MSFT
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thank you for your reply..
I need to Change the Color Time by Time.
Please advice How to change..
Thanks
For Example.
RVSalesSetup.GET;
IF REC."Time." IN [RVSalesSetup."W/A Color From Time 1"..RVSalesSetup."W/A Color To Time 1"] THEN
Color := 12664441
ELSE IF REC."Time." IN [RVSalesSetup."W/A Color From Time 2"..RVSalesSetup."W/A Color To Time 2"] THEN
Color := 1044500
ELSE IF Rec."Time." IN [RVSalesSetup."W/A Color From Time 3"..RVSalesSetup."W/A Color To Time 3"] THEN
Color := 2045920;
What you want to achieve is only possible with a .Net client-addin, where you generate your own TextBox Class. And this not works with page repeaters!
You should consider getting rid of it. RTC was not (yet) designed to have customized appearence.
Thx!
It works as expected... More or Less...
i have same issue.
can you please post the reply what you have found out.
Please revert back.
THanks
Regards,
Saurav dhyani
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page
Can you pls. describe the scenario for which you need to change the font color?
Henrik Metzger, Software Development Engineer, Dynamics NAV
MSFT
I have a client that uses colors on fields to differ between sales orders which are
1.) Recently ordered (yellow)
2.) Back ordered (red)
3.) Ready for Pick up (green)
4.) Sale Finalized & delivered (blue)
Is there any way to do this in NAV 2009 SP1 or R2?
I saw this link and was hoping to use this as a guide -
http://dynamicsuser.net/blogs/waldo/archive/2009/06/29/data-emphasis-in-microsoft-dynamics-nav-2009-sp1-ctp2-update.aspx
but the colors need to be able to change based on status of the order.
I think you can't do it. You can only establish one style for your field, and with a bollean variable you can activate or deactivate it.
It works as expected... More or Less...
Henrik Metzger, Software Development Engineer, Dynamics NAV
MSFT
http://blogs.msdn.com/b/cabeln/archive/ ... d-ins.aspx
Regards,
egnaz