on 07-14-2006 3:12 AM
In the application I am working on, we capture a lot of comments that are stored in the database. I need to now display these comments which could be "0 to n" in a table format with some other columns like COMMENTS FROM/ COMMENTS DATE/COMMENTS etc.
Problem: The users, when typing the comments in a text-edit field have inserted line breaks. But the column that displays the COMMENTS ignores the line breaks and treats the entire text as one big line.
I have already looked at FormattedViewText uielement but the table uielement cannot use that as child element.
Any suggestions.
Thanks in advance
Prashant
Hi
I am not sure whether TextEdit is avalible as TableCellEditor.(At least NWDS sp 14 doesn't have it).
If later versions have it then that is the solution.
Otherwise you can create a link or button say "View Comments" in the Comments column and on click of that open a TextEdit and disply the comments.
Regards,
Ajay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prashant,
You can use the Property "Wrapping". First you determine the number of characters perline and assign the Wrapping property to "true"
Hope this will help you
Kind Regards,
Saravanan K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sravanan/Vln,
The answer didnt help me.
The line breaks could be anywhere in the comment.
_________________________________
Example:
I am a abapper. Here is a line break.
My name is Prashant. Another line break.
I like music.
_________________________________
There are 5 line breaks in between the above 2 lines. If this text was displayed in one of the table columns, it will show all the 5 lines on 1 continous line. Wrapping will not wrap the lines on linebreaks.
Prashant,
It seems to be impossible to implement.
I don't know version of WD where line breaks works correctly in table (also they works in TextView in certain versions).
My advise: if (and only "if" you are using NW04s, then create table pop-in and place TextView / TextEdit (read-only) inside this popin. The table will looks like several columns (author, date, ect) and comment text in every odd row (even row with author and date, odd with comments).
Valery Silaev
EPAM Systems
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
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.