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)
          )
        )
      )
    )

  • 0
    Certified Lead Developer
    in reply to Dave Lewis

    This is a neat workaround (which i've heard before but keep forgetting about); anyone who uses this trick though, i'd encourage to just create an expression rule (the code posted above looks like it would be all you need in this rule), into which you can pass your desired text and it passes out the unicode equivalent -- hardcoding this into various forms is asking for trouble if and when Appian functionality is updated in the future.

Reply
  • 0
    Certified Lead Developer
    in reply to Dave Lewis

    This is a neat workaround (which i've heard before but keep forgetting about); anyone who uses this trick though, i'd encourage to just create an expression rule (the code posted above looks like it would be all you need in this rule), into which you can pass your desired text and it passes out the unicode equivalent -- hardcoding this into various forms is asking for trouble if and when Appian functionality is updated in the future.

Children