Update a line i Item List to font bold

FreeksterFreekster Member Posts: 5
edited 2004-03-01 in Navision Attain
Hi all!

Maybe this is a piece of cake but I'm stuck.
My client wants the line in the Item list (form 31) to be marked with font bold as he steps up and down. I've tried to many different options but without succes.
Do you guy's have any pointers?
Have a nice week end!

Comments

  • Timo_LässerTimo_Lässer Member Posts: 481
    I have done this a few month ago.
    I have done it this way:
    Form - OnAfterGetCurrRecord()
    CurrentRecord := Rec;
    
    Form - OnTimer()
    IF CurrForm.ACTIVE THEN
      IF NOT IsEqual(CurrentRecord2,Rec) THEN BEGIN
        CurrForm.UPDATE(FALSE);
        CurrentRecord2 := Rec;
      END;
    
    Description - OnFormat(VAR Text : Text[1024];)
    CurrForm.Description.UPDATEFONTBOLD(IsEqual(CurrentRecord,Rec));
    
    Procedure IsEqual(Rec : Record "Report Menu";Rec2 : Record "Report Menu") : Boolean
    EXIT(
      (Rec."User ID" = Rec2."User ID") AND
      (Rec."Source Type" = Rec2."Source Type") AND
      (Rec."Communication Type" = Rec2."Communication Type") AND
      (Rec."Line No." = Rec2."Line No."));
    
    Note: You must set the property TimerInterval to a value which is fast enough for "real time update" and slow enough to save resources. In my case, if have set it to 100.
    Be aware that I use Rec, CurrentRec and CurrentRec2.

    If somebody knows a more performant solution, please tell it me :wink:
    Timo Lässer
    Microsoft Dynamics NAV Developer since 1997
    MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
Sign In or Register to comment.