cancel
Showing results for 
Search instead for 
Did you mean: 

Line breaks in displaying comments in table uielement

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

hi

set the width of the column in pixel size as well.

reg

vln

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi Prashant,

What if you use TextEdit UI elements in read-only mode instead of TextViews as TableCellEditors?

Does that respect line breaks?

Regards,

Satyajit.

Former Member
0 Kudos

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

http://www.NetWeaverTeam.com