Display check on boolean field on classic report

Alex_ChowAlex_Chow Member Posts: 5,063
Is there a way to display a check for a boolean variable instead of Yes / No on a classic NAV report?

I think the answer is no, but [-o<

Answers

  • sendohsendoh Member Posts: 207
    Hi Alex,

    This can be done by changing the font to "Wingdings",
    you can view this in charmap, go to run type "charmap" the charmap will show then select the font style to wingding, copy the "Check" character and paste it to nav.

    i.e
    vcheck := ü;

    then change the font of the text box to to "wingdings".
    OBJECT Report 55888 test
    {
      OBJECT-PROPERTIES
      {
        Date=10/01/09;
        Time=10:09:25 AM;
        Modified=Yes;
        Version List=;
      }
      PROPERTIES
      {
      }
      DATAITEMS
      {
        { PROPERTIES
          {
            DataItemTable=Table27;
            OnAfterGetRecord=BEGIN
                               check := '';
                             END;
    
          }
          SECTIONS
          {
            { PROPERTIES
              {
                SectionType=Body;
                SectionWidth=12000;
                SectionHeight=846;
              }
              CONTROLS
              {
                { 1000000000;TextBox;3450 ;0    ;1500 ;423  ;FontName=wingdings;
                                                             FontBold=Yes;
                                                             SourceExpr=check }
                { 1000000001;TextBox;0    ;0    ;1500 ;423  ;SourceExpr="No." }
              }
               }
          }
           }
      }
      REQUESTFORM
      {
        PROPERTIES
        {
          Width=9020;
          Height=3410;
        }
        CONTROLS
        {
        }
      }
      CODE
      {
        VAR
          check@1000000000 : Text[30];
    
        BEGIN
        END.
      }
    }
    






    Regards,
    Sendoh
    be smart before being a clever.
  • MalajloMalajlo Member Posts: 294
    Or you can try with PictureBox
    I tried on T:27 and it works

    Properties of PictureBox:
    BitmapList: c:\link.bmp,c:\nolink.bmp
    SourceExpr: Blocked
  • matttraxmatttrax Member Posts: 2,309
    Yeah, I've always done this with Wingdings font. CharMap is your best friend on this one.
Sign In or Register to comment.