on 04-18-2011 7:45 AM
Hello,
I have a scenario where user has to input some data in a text area field and submit it.
Upon submission that data is to be displayed on different view as normal text.
I have used TextEdit UI element for this purpose and bound it to context attribute variable of type String.
Now when user enters Data in below format in textedit filed :
Line1 comes here,
Line2 goes here.
and press submit button,
It gets displayed in below format :
Line1 comes here,Line2 goes here.
But it should have got displayed in format in which user entered this data...i.e. with that line separation....
How can I make this possible.
Thanking you in anticipation
Saurabh,
I think you will have to insert a new line character explicitly in the attribute you use to store the text edit data (say TEdata)
Declare a String and set its value to TEdata.
Now iterate over the string and find the ASCII value of each character that has been typed and wherever it corresponds to an Enter , insert a new line character.
Once done , assign the value of this string to TEdata.
Hope this helps.
Regards,
Himanshu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.