Bulleted List is not displayed properly

Certified Associate Developer

Hello All,

I'm building an application where I have to show error message to the users on the basis of some invalid inputs in cdt. I'm running a a!foreach() loop to get the list of all invalid data from cdt. The data returned is also in a correct format(Array) but when I'm trying to display its value using a!richTextBulletedList() its not showing bullets before the text. However the text displayed is in proper format i.e each index value is on separate line. I also tested the rule with local values and at that time it works fine. Can someone please tell me why exactly its happening?

Instead of displaying the value like

abc

pqr

xyz

 

I need it to be displayed like

*abc

*pqr

*xyz

 

where * is a symbol for bullet

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Hi Vivek,

    find the below code for displaying the list with bullets

    load(
      local!data: Your ri variable,
      {
        a!sectionLayout(
          contents: {
            a!forEach(
              items: local!data,
              expression: with(
                local!data1: fv!index - 1,
                a!columnsLayout(
                  columns: {
                    a!forEach(
                      items: ldrop(
                        local!data,
                        (
                          local!data1 * 5
                        )
                      ),
                      expression: if(
                        not(
                          fv!index > 5
                        ),
                        a!columnLayout(
                          contents: {
                            a!richTextDisplayField(
                              label: "",
                              labelPosition: "ABOVE",
                              value: {
                                a!richTextBulletedList(
                                  items: {
                                    a!richTextListItem(
                                      text: a!richTextItem(
                                        text: fv!item,
                                        style: "ACCENT"
                                      )
                                    )
                                  }
                                )
                              }
                            )
                          },
                          width: "NARROW"
                        ),
                        {}
                      )
                    )
                  }
                )
              )
            )
          },
          isCollapsible: true(),
          isInitiallyCollapsed: true()
        )
      }
    )

  • 0
    Certified Associate Developer
    in reply to santoshd378
    Hello Santosh/Carlos,

    Thanks for your reply but I figured out the issue. Actually there was no issue with the code. I was testing the application from process model instead of tempo action i.e start process for debugging and that is why the bullets were not displayed. I checked it from action-> Tempo and now its working
Reply Children
No Data