on 07-13-2012 4:51 PM
Hi All,
I have a typical requirement. I have a string that is to be printed in Adobe form. The string contains both French and English texts. The English texts will have a starting and ending '#' symbols, to differentiate from the French text. The French text will be printed in Arial 10 and English text will be printed in Arial 8. Please let me know how this can be achieved. Please note , that French and English texts will be dynamic based on user inputs.
My initial plan was to look for '#' signs in the string in the form script editor and then create text fields dynamically and assigning font name and size to them dynamically as well( similar to the way we create dynamic UI elements in ABAP Webdynpro by coding ). But I couldn't progress much as I did not find any such examples. Also I am not very sure whether that approach would help or not.
Please let me know if there is any other better approach for handling this.
Please help me out on this.
Thanks and regards,
Satya.
Hi Satya,
I agree with Christopher, it does seem like an unusual approach to mix both languages.
However, one approach would be to bind the field containing the strings, and then split into 2 separate fields on the form template, using the initialization event and the .split operator:
var array = this.rawValue.split("#");
Then with two separate objects you can set the font in the object properties tab.
The result is:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You don't have quite the same ability to dynamically generate UI elements such as you can with ABAP WebDynpro.
These texts....are they "static" as well? What controls if/when they are displayed? Also, is it possible that the user will be using the form in English but viewing the text in French? (I ask because if not, you could simply make use of "translation" of the Adobe form and have it localized to the user's language)
More info needed from you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.