on 10-11-2006 7:54 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
7 | |
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.