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