on 03-29-2006 10:34 AM
Hai,
I tried to develope the scenario like when i entered the data in <b>textfield</b> and press the <b>button</b> the data is to be shown in <b>textview</b> .
The problem is the data coming into the textview is formatted. I need the same format(like paragraph) in the text view also.
How to do it.
Please help me asap.
regards,
Hi,
If you are using WD for java check Valery`s nice blog /people/valery.silaev/blog/2005/11/23/display-formatted-text-using-webdynpro-for-java
Best regards, Maksim Rashchynksi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Naga,
Actually, it is possible to use my code, your "formattedStr" should be created like:
/* Your original value */
final String multiline_text =
"Lorem ipsumn" +
"Dolor sit ammenn" +
"And all the rest";
/* Formatted value */
final String formattedStr =
"<html><body><p>" +
multiline_text.replaceAll("\r?\n", "</p><p>") +
"</p></body></html>";
In NW04s text view will support multiline text automatically.
Valery Silaev
EPAM Systems
Hi,
did you try using the FormattedTextView ui element instead of TextView? See also http://help.sap.com/saphelp_nw04s/helpdata/en/3b/219141c1d0ae5fe10000000a1550b0/frameset.htm
Regards, Heidi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.