cancel
Showing results for 
Search instead for 
Did you mean: 

How to display Rich text (HTML) in a screen?

ACORDERO
Participant
0 Kudos

Hi,

I am trying to use the standard embedded component '/SAP_BYD_APPLICATION_UI/Reuse/Notes/singletextreadonly.EC.uicomponent' to show a Ticket note which contains rich text (HTML). I can see the text but also the HTML tags so it is not working as I expected.
The EC is bind to ServiceRequest.TextCollection.Text.TextContent.FormattedText.content and it has the parameter 'TextContentTypeCode' equals to 'FormattedText'.

I also tried this other EC, 'BYD_COD/UIInfraestructure/RichTextBox/RichTextBox_EC.EC.uicomponent' but it seems to be that it is SAP exclusive and I cannot use it.

How can I show the HTML text?

Thanks,
Alejandro Cordero.

Accepted Solutions (1)

Accepted Solutions (1)

ACORDERO
Participant
0 Kudos

I found a solution. We can show formatted HTML text using a StaticText with the property Behaviour.SupportTextFormatting equals to 'true'.

Regards,
Alejandro Cordero.

Answers (1)

Answers (1)

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Alejandro,

Did you read the documentation in the Repository Explorer, tab "Reuse UIs"?

Bye,
Horst

ACORDERO
Participant
0 Kudos

Hi Horst,

Thanks, I have read it but it does not help. I am using C4C HTML5 and setting the component as the documentation says but I can see the HTML tags.

Any other idea?

Thanks,
Alejandro.