on 07-30-2010 4:09 PM
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.