on 02-20-2007 1:40 PM
Hi all,
I use textview ui element to show message(String).The attribute attached to this element is populated dynamically in code. I use new line character (\n) to move text to next line .This worked fine for me in earlier versions (SPS15).
Now that the systems are upgraded to SPS19.The text shows up in a single line.The new line is totally ignored.
Any faced similar issues or anybody know the way out pls post here..
Many Thanks,
Ashok.
Used /n/r
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I dont think \n is recognized in Text View.
if you want to display formatted text then you should use Inline Frames
Regards,
Anish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hai,
This may help you
/people/valery.silaev/blog/2005/11/23/display-formatted-text-using-webdynpro-for-java
regards,
Naga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashok,
i have tried it out. The \n still works.
I created a string variable "str" as follows:
String str = "Hello" + '\n' + "How are you"
I passed this value to a context variable which was mapped to a textview UI.
The textview displayed the message on as follows:
Hello
How are you
Please try it again, in this fashion.
Regards,
Hanoz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Open an OSS message (BC-WD-CLT-HTML).
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ashok,
This means that it is probably a bug in SP19 (regression)
If this is in fact true, you can't use functionality untill necessary patch will be released.
Btw, old versions of WD didn't have such functionality, common workaround was to use dynamic context/ui programming, split string up to lines and create as many attributes/TextView-s dynamically as number of lines. Every TextView shows single line.
Valery Silaev
SaM Solutions
Message was edited by:
Valery Silaev
Hi Ashok,
set the layout width property = 'Npx' , where N is size of the line in pixels.
But for this, you need set the parent container layout property to 'Grid Layout'.
regards,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Have you tried setting the "<i>Wrapping</i>" property of the "<i>TextView</i>" UI element to true?
Regards,
Satyajit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
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.