on 09-03-2011 6:53 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.