Update Color for Record

Martin_FörsterMartin_Förster Member Posts: 55
hallo,

i have some problems with Color Updates.

I have on table and one form, every i open the form i would like to check each Date Filed. if the date field under Workdate it should be have the Color red and if NOT when it should be green.

I saw that is not possible with Navision (dynamically) change Colors!!

Or is there another option to do that?? Maybe i have to change the Record Constuction??

Isn't it??

thx for help

Comments

  • JohnJohn Member Posts: 43
    In the OnFormat Trigger of YourDateField

    IF YourDateField < WORKDATE THEN
    BEGIN
    CurrForm.YourDateField.UPDATEFORECOLOR(255); // = Red
    CurrForm.YourDateField.UPDATEFONTBOLD(TRUE);
    END ELSE
    BEGIN
    CurrForm.YourDateField.UPDATEFORECOLOR(0); // Standard Black
    CurrForm.YourDateField.UPDATEFONTBOLD(FALSE);
    END;

    Good Luck
  • WaldoWaldo Member Posts: 3,412
    There is a quite amusing thread on this forum about this:
    http://www.mibuso.com/forum/viewtopic.php?t=19881

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
Sign In or Register to comment.