Hi All,
I have a requirement to show both Image and text in one column of the Record List Grid. I have tried as below but able to show only image in the column but not text also
my use case is to show COUNTRY FLAG and COUNTRY NAME beside it in a column COUNTRY in a Record List Grid. I have declared the column with RichText component and used a!richtextImage to show the flag which is stored as document in our Appian environment. And couldn't find any function which would enable the TEXT also.
Could anyone suggest me how to achieve the same. Thanks in advance
Discussion posts and replies are publicly visible
The Rich Text component can take an array of Rich Text Items. So you could set it up something like this:
{ a!richTextItem( text: {"Styled Text"} ), a!richTextImage( image: a!documentImage( document: a!EXAMPLE_DOCUMENT_IMAGE() ) )}
Select Rich Text as your Grid Column and in Display Value of that Column configure code like below.
where rf!countryName is Country Name and rule!getCountryIcon() which returns country icon based on country name .
{ a!richTextItem( text: { rf!countryName } ), a!richTextImage( image: a!documentImage( document: rule!getCountryIcon( countryName: rf!countryName ) ) )}
Stewart Burchell and Krishna Chaitanya Thank you so much for your quick response and suggestion. I am able to achieve my requirement by the approach suggested by you.
My bad I have tried the same Rich Text Items but missed the structure which lead to errors earlier. Any way BIG Thanks again..:-)