on 03-08-2012 10:34 AM
Hi friends,
I have one Text Edit in Web Dynpro. I need to show the result of FM READ_TEXT in Text Edit View element, without lose the text format.
Cardinality of my node is 0:n and attribute datatype is string_table. after assigning the values using bind_table method, I am getting only the first row of the read_text returns...
By
deva
Hi Deva,
Text View is not meant to be bound to string_table. Create a string instead and convert that string table into that string with
<br>
between each row of string table. TextView component will make <br> into new lines. Code will be similar to following.
DATA: ROWS TYPE string_table,
top type string,
result type string.
loop at rows into top.
concatenate result top into result separated by '<br>'.
endloop.
Now bind this result string to the text view component. It ll work. Hope it will be helpful for you.
Regards,
Fareez
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I don't think <br> works in webdynpro, and we can bind string_table attribute to the textview.
suppose you have a node with cardinality 1:1 and under it an attribute with type string_table.
Now the output of the FM READ TEXT is a string table, now using the SET_ATTRIBUTE method
of the context element interface IF_WD_CONTEXT_ELEMENT set the value of the attribute as
the output of string table.you can get the desired output.
Hope this helps.
Hi,
can you put up the code you used, So that we can figure it out.
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 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.