on 01-09-2009 3:17 PM
Hi to everyone,
my problem is how to effectively use a "rich text" field in an form created by Adobe LiveCycle.
I created some forms (not interactive, in this case, just printouts), and if I try to use a text field with some XHTML text inside (just to have some part of the text bold, or italic, and so on...) the result is that the text field shows the XHTML code, without any "interpretation".
The content of the field is filled dynamically from an ABAP webdynpro application using a ZCI layout and a XML schema based interface (automatically generated from the context), but I got the same bad result using a stand-alone report (executed by the SAPgui) using a standard layout and an ABAB dictionary based interface.
In the first case, the field is copied to the context before the form is shown; it is included in a webdynpro view. In the second one, the form is called by the function module, passing to it the necessary values as input parameters.
Any suggestions?
Your help will be greatly appreciated.
I already found the blog "Text Fields in Adobe Interactive Forms" (/people/juergen.hauser2/blog/2006/03/01/growing-rich-text-fields-in-adobe-interactive-forms) but apparently some other guy had the same problem as me and they still seem to be unsolved...
Thanks anyway, bye
Hi Simone,
with the following java script you can force the designer to interpret the xhtml code as rich text:
var sXHTML = inputText.rawValue;
sxhtmlText.value.text.value = sXHTML;
richText.value.exData.loadXML(sXHTML);
sXHTML is just a short variable for testing...
sxhtmlText is the Rich-Text-Textfield...
as input you need something like this:
inputText.rawValue = "<body xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:xfa=\"http://www.xfa.org/schema/xfa-data/1.0/\" xfa:APIVersion=\"Acroform:2.2.4333.0\" xfa:spec=\"2.1\"><i><u>Test Field</u></i></body>";
If you're going on to pdf-preview the sxhtmlText-field should be filled with: Test Field
I hope this helped
best regards,
Matthias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
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.