on 10-20-2010 9:50 AM
Hi,
I have a formattedtextview UI element that I want to fill with certain values at runtime.
All these values should be on different lines . How do I use the new line character to achieve this.
I tried to append these values in a String (displayText) and used \n for new line. I then converted this to formatted text using:
IWDFormattedTextFactory instance =
(IWDFormattedTextFactory) WDHelperFactory.getInstance(IWDFormattedTextFactory.class);
String value = displayText;;
IWDFormattedText formtext = instance.fromPlainText(value);
wdContext.currentContextElement().setFoTxt(displayText);
This however does not work.The data comes on one line
Can someone suggest.
TIA.
Regards,
Himanshu
Use +"\n" in the string it will split into new line
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.