cancel
Showing results for 
Search instead for 
Did you mean: 

FormattedTextEdit + smartforms

Former Member
0 Kudos

Hi ,

I'm developing a web dynpro application embbeding a smartform.

In a view of my application I have a FormattedTextEdit IUElement. The content of this UIElement should be passed to the smartforms, with the same formatting, and displayed in a text node.

Is there any way to do this?

Thanks for your help.

Kind regards

Karim

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Thomas,

Isn't there any other way to send a formattedTextEdit to a smartforms?

Kind regards

Karim

s0004895470
Active Participant
0 Kudos

Karim,

Check out the following methods of class CL_HRRCF_CS_SF

CONVERT_ITF_TO_HTML

CONVERT_HTML_TO_ITF

These can convert a tline table to html for use in the formattedtextedit.

Cheers,

Luk

Former Member
0 Kudos

Dear Luck

There no such, CONVERT_ITF_TO_HTML, CONVERT_HTML_TO_ITF methods in the CL_HRRCF_CS_SF class

Former Member
0 Kudos

Hi Thomas,

Do you mean that I should write some logic that will store my text(from formattedText) to a sapscript text.

And the in my smartform, read the sapscript text?

Kind regards

Karim

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

It doesn't have to be stored as SapScript text, just formatted as SapScript text. That is the only way that you will retain any of the bold, underline, etc. formatting.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

The internal format of Sapscript/smarforms is quite a bit different than what is produced by the FormattedText UI elements. Check out the utility class CL_WD_FORMATTED_TEXT. It has a method that converst from SapScript to formatted text. You might be able to study that logic and reverse it to get back to SapScript.