Appian Community and Appian Academy are being upgraded. From July 24–August 3, the Appian Community will be in read-only mode. During this time, the site will be read-only and user registration will be disabled. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

How to mark EditableGrid Header in BOLD

Hi,

I have an editable grid where I have some columns with headers (i.e a!gridLayoutHeaderCell(label: "HEADER",align: "CENTER")). I am trying to mark header label in BOLD (i.e HEADER). I have already tried richtext, no luck.

Please help me with it.

Thanks

Shamim Ahmad

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Unicode bold letters start at 119808.

    So char(119808) should render a capital A in bold.  code("A") gives you 65.  So, you need to add 119743 to each of your letters to make them bold.  Unless they're spaces or punctuation.

    This gets you ALL CAPS, but the lower case letters aren't in the same relative position on both ends of the unicode standard.  So you have to adjust the starting point for the list of lowercase letters, and the number you have to add.

    joinarray(
      a!forEach(
        items: code(ri!text),
        expression: if(
          and(fv!item > 64, fv!item < 91),
          char(fv!item + 119743),
          if(
            and(fv!item > 96, fv!item < 123),
            char(fv!item + 119737),
            char(fv!item)
          )
        )
      )
    )

Reply
  • 0
    Certified Lead Developer

    Unicode bold letters start at 119808.

    So char(119808) should render a capital A in bold.  code("A") gives you 65.  So, you need to add 119743 to each of your letters to make them bold.  Unless they're spaces or punctuation.

    This gets you ALL CAPS, but the lower case letters aren't in the same relative position on both ends of the unicode standard.  So you have to adjust the starting point for the list of lowercase letters, and the number you have to add.

    joinarray(
      a!forEach(
        items: code(ri!text),
        expression: if(
          and(fv!item > 64, fv!item < 91),
          char(fv!item + 119743),
          if(
            and(fv!item > 96, fv!item < 123),
            char(fv!item + 119737),
            char(fv!item)
          )
        )
      )
    )

Children