cancel
Showing results for 
Search instead for 
Did you mean: 

Capture the TEXT of textview

Former Member
0 Kudos

Hi Experts,

In my WebDynpro application I have a text view I am creating it dynamically and passing the text while creating, I wnat to delete the textview once press the delete button.. I have the text view ID so how can I capture the text of Text view with using Text view ID . Please suggest me how do I cpture the Text of text view using the ID of that

Thanks,

Anil

Accepted Solutions (1)

Accepted Solutions (1)

saravanan_narayanan
Active Contributor
0 Kudos

Hello Anil,

Using the method CL_WD_TEXT_VIEW->GET_TEXT you can get the text that you have set dynamically.

for your requirement do the following

1. from the IF_WD_VIEW object, call the GET_ELEMENT method get the text view element object

2. then call the get_text method of the text view element to get the text that was set by you.

BR, Saravanan

Former Member
0 Kudos

Thanks Saravanan,

Issue solved.

Answers (1)

Answers (1)

Former Member
0 Kudos

Question is ,if you supply the text for the textview while you create then you know what text you supplied .why do you need a way to get the text out of the textView. It is not changed in anyway.

Best practice is to have the text property bind to the context attribute.