Skip to main content
dragosr3134
April 16, 2024
Solved

Indeting table with margin-right.

  • April 16, 2024
  • 8 replies
  • 0 views

Hello, in my case I have a table created with editable grid which contains a hierarchy.

My problem is that I should indent this table with spaces and not with dots as in the given example, but I don't know how.

To obtain that array with dots I have a small rule with return an array with N dots, but if I try with " ", the result will be also " ".

 Example 1: nr=5 -> concat(repeat(ri!nr,".")) -> "....."

Example 2: nr=5 ->concat(repeat(ri!nr," "))  -> " ", what I want is "     ".

Can you help me? Even with another variant than the one I had?

    Best answer by shubhama926776

    Hello [mention:0d7da0c15324494fa2197dfbfc160029:e9ed411860ed4f2ba0265705b8793d05] 

    Try using joinarray(repeat(ri!nr,char(160)))

    a!richTextDisplayField(
      labelPosition: "COLLAPSED",
      value: "ABC" & joinarray(repeat(times: 100, input: char(160))) & "DEF"
    )


    Let me know if that works for you.

    8 replies

    venkatrea696188
    April 16, 2024

    You are missing space inside inveted commas " ". Instead of using  " " use unicode char(32).  

    dragosr3134
    April 16, 2024

    I've already tried it and the result is similar

    karumurua531442
    April 16, 2024

    did you check with repeat(ri!nr,char(32))?

    shubhama926776
    Brainy
    April 16, 2024

    Hello [mention:0d7da0c15324494fa2197dfbfc160029:e9ed411860ed4f2ba0265705b8793d05] 

    Try using joinarray(repeat(ri!nr,char(160)))

    a!richTextDisplayField(
      labelPosition: "COLLAPSED",
      value: "ABC" & joinarray(repeat(times: 100, input: char(160))) & "DEF"
    )


    Let me know if that works for you.

    शुभम्
    dragosr3134
    April 16, 2024

    Thanks, I tried your version and it works.

    shubhama926776
    Brainy
    April 16, 2024

    Good to know.

    शुभम्