cancel
Showing results for 
Search instead for 
Did you mean: 

Long text editor

Former Member
0 Kudos

Hello.

I have to display a long text (long text of a WBS) in order to let the user change and save it. I use read_text and save_text functions.

For the moment, I display the long text in a table, without grid. It works but it is not user-friendly because, for example, the user cannot add a line. He can only modify the existing text, line by line.

Could someone help me to display this long text in another element (text_edit,..)

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Van Lerberghe,

The text is typically stored in TABLE with every line of fixed length (~1000 characters).

1. To display text: read all lines from TABLE and concatenate them. Then use result value to set initial text of text_edit (via context attribute).

2. To save edited text: in action handler, read corresponding value of context attribute to which text_edit bound. Split it up to lines of fixed length and add this lines to table.

Probably some special handling of carrige returns necessary as well, both when you are concatenating and spliting text.

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

Answers (0)