Change Font Color in RTC

sameerarsameerar Member Posts: 63
edited 2011-11-30 in NAV Three Tier
HI ALL,

I have Tried to Change Field Font Color Using UPDATEFORECOLOR Function in NAV 2009
But It is not Supporting to RTC.

Is there anyway to do this???

Please Help.

Thanks In Advance,

Sameera

Comments

  • kinekine Member Posts: 12,562
    No, but you can set the Style or StyleExpr property of the field to switch between predefined styles.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • sameerarsameerar Member Posts: 63
    HI ,

    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;
  • deV.chdeV.ch Member Posts: 543
    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.
  • Troubles_In_ParadiseTroubles_In_Paradise Member Posts: 588
    Very useful, I found what I was searching for!
    Thx!
    ~Rik~
    It works as expected... More or Less...
  • postsauravpostsaurav Member Posts: 708
    Hi all,

    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
  • henrikmhenrikm Member, Microsoft Employee Posts: 66
    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
  • rkucharrkuchar Member Posts: 33
    Hello,

    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.
  • Troubles_In_ParadiseTroubles_In_Paradise Member Posts: 588
    rkuchar wrote:
    Hello,

    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.
    ~Rik~
    It works as expected... More or Less...
  • henrikmhenrikm Member, Microsoft Employee Posts: 66
    That is not possible. You can only switch on/off the style. It is not possible to change the style :(
    “This posting is provided "AS IS" with no warranties, and confers no rights.”

    Henrik Metzger, Software Development Engineer, Dynamics NAV
    MSFT
  • EgnazEgnaz Member Posts: 111
    For multiple color you can do somthing like this:
    http://blogs.msdn.com/b/cabeln/archive/ ... d-ins.aspx

    Regards,
    egnaz
Sign In or Register to comment.