cancel
Showing results for 
Search instead for 
Did you mean: 

Several lines/attributes in a textview?

Former Member
0 Kudos

Hello,

i want to display several attributes in a textview (which is in a table.)

Additionally each attribute should be placed in a new line within the textview.

Can anybody help me?

(i've read something about string_table ............but i don't know if it's suitable - i don't get it work)

Accepted Solutions (0)

Answers (1)

Answers (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi Chris,

discussion held on this topic, useful for you

Regards

Abhimanyu L

Former Member
0 Kudos

yes, I've already read this topic. But it didn't help me.

I've tried it with string_table but when i display it, all attributes / strings are in the same row.


DATA: bem TYPE string_table.
APPEND 'test1' TO bem.
APPEND 'test2' TO bem.
APPEND 'test3' TO bem.
...

:-?

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi Chris,

yes, it is not working... even i checked..

experts can through light on this?

Regards

Abhimanyu L

Former Member
0 Kudos

no ideas?

Former Member
0 Kudos

Hi,

I use such a string_table to display my case notes,

they all come at seperate lines like it is in the sapgui,

but instead of a textview, you should use textedit uielement

grtz

Koen

Former Member
0 Kudos

hi koen,

when i use textedit it works. but i only want to display data within the table. And the layout of a textedit uielement is very different to my table ...

How can I adjust the layout, that it fits in my table .....?

Or is ther an alternative to string_table and textEdit?

... a further problem is, that i don't know the amount of rows i have to display. So it's difficult to set the rows and columns...

Message was edited by:

Chris Rukar

Former Member
0 Kudos

Hi,

concerning the rows you have to specify: these are the visible ones, if you exceed

them, the scrollbar will be activated.

If you ave your attributes for your display, you can do this with a textView,

given that they have all approximately the same length, that way, you can set

the width of your textView close to the maximum length of the attributes, and select

the wrapping on true. if you now look at the layout in the browser, the data will get

a line feed for every attribute

grtz

Koen