cancel
Showing results for 
Search instead for 
Did you mean: 

Pass rich text string from webdynpro java into interactive form

Former Member
0 Kudos

Hi, experts:

I know rich text-related questions have been asked by many other forum member.

But I still cannot figure out how to display rich text string in the interactive form.

below code is set rich text string in my webdynpro program.


wdContext.currentDataForPDFElement().setDescription("<html xmlns:xfa=\"http://www.xfa.org/schema/xfa-data/1.0/\" xfa:contentType=\"text/html\"><body><p>20100730 0950</p><h1><strong>test1</strong><br /></h1></body></html>");

or


wdContext.currentDataForPDFElement().setDescription("<p>20100730 0950</p><h1><strong>test1</strong><br /></h1>");

Text field in the interactive form has been assign "Field Format" to "Rich Text", "Data Format" to "XHTML".

I also check XML in the "XML source" tab of interactive form.


<field name="Description" w="152.817mm" minH="25.2984mm" colSpan="3" access="readOnly">
  <ui>
         ...
  </ui>
  <font typeface="Myriad Pro"/>
  <bind match="dataRef" ref="$record.Description"/>
  <value>
     <exData contentType="text/html">
        <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xfa:APIVersion="2.4.5277.0"/>
     </exData>
  </value>
</field>

My development tool version is NWDS CE EHP1 SP4, LiveDesigner v 7.1.

What I miss? Any hints would be very appreciated.

Accepted Solutions (0)

Answers (1)

Answers (1)

OttoGold
Active Contributor
0 Kudos

What about these:

Formatting in SO10 texts into the form

regards Otto