No. - OnFormat(VAR Text : Text[1024];) // The format-method IF ("Marked for Routing" = USERID) THEN BEGIN CurrForm."No.".UPDATEFONTBOLD(TRUE); CurrForm."No.".UPDATEFORECOLOR(255); END ELSE BEGIN IF ("Marked for Routing" <> '') THEN BEGIN CurrForm."No.".UPDATEFONTBOLD(TRUE); CurrForm."No.".UPDATEFORECOLOR(0); END ELSE BEGIN CurrForm."No.".UPDATEFONTBOLD(FALSE); CurrForm."No.".UPDATEFORECOLOR(0); END; END;
Answers
Yes, that's correct. There isn't a function to format the entire row..
Tino Ruijs
Microsoft Dynamics NAV specialist
Tino is correct there is no function for the row but I can suggest two things.
1. use a functions to decide the colour and bold e.g.
CurrForm."No.".UPDATEFONTBOLD( recordbold );
CurrForm."No.".UPDATEFORECOLOR( recordcolour );
this work the same way but it save a hugh amount of time if you ever need to change the colour scheme/causes. You then only have to change the functions recordbold and recordcolour instead of going into the trigger of each field
2. you can use the marked flag on the record ( put a black mark at the start of the row)
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
Thanks a lot for your quick response. I will make a function to handle the color and font-weight.
I'm not only new to Navision, I'm also new to this forum
Welcome on Mibuso!
Tino Ruijs
Microsoft Dynamics NAV specialist