Skip to main content
dragosr3134
New Participant
Apr 16, 2024 10:33 AM UTC
Solved

Indeting table with margin-right.

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?

    shubhama926776
    Brainy
    Apr 16, 2024 10:48 AM UTC

    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
    Inspiring
    Apr 16, 2024 10:38 AM UTC

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

    dragosr3134
    New Participant
    Apr 16, 2024 10:39 AM UTC

    I've already tried it and the result is similar

    karumurua531442
    Participating Frequently
    Apr 16, 2024 10:46 AM UTC

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

    shubhama926776
    Brainy
    Apr 16, 2024 10:48 AM UTC

    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
    New Participant
    Apr 16, 2024 11:01 AM UTC

    Thanks, I tried your version and it works.

    shubhama926776
    Brainy
    Apr 16, 2024 11:08 AM UTC

    Good to know.

    शुभम्