on 09-25-2007 5:50 AM
Hi,
How can we dynamically set the properties of the ui elements in wed dynpro abap?
hi
good
go through this link hope this ll help you to solve your problem,
thanks
mrutyun^
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check out this great blogs about the subject:
Dynamic Programming in Web Dynpro ABAP - Introduction and Part I:
Understanding UI Elements
/people/thomas.szcs/blog/2005/12/28/dynamic-programming-in-web-dynpro-abap--introduction-and-part-i-understanding-ui-elements
Dynamic Programming in Web Dynpro ABAP - Part II: Handling ViewElements
/people/thomas.szcs/blog/2006/01/03/dynamic-programming-in-web-dynpro-abap--part-ii-handling-viewelements
Dynamic Programming in Web Dynpro ABAP - Part III: Aggregations and
DDIC-Binding of ViewElements
/people/thomas.szcs/blog/2006/02/22/dynamic-programming-in-web-dynpro-abap--part-iii-aggregations-and-ddic-binding-of-viewelements
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
you can set properties dynamically by calling respective method of the class.
for example,
class of the input field is <b>cl_wd_input_field</b>.
in your wddomodifyview do the below coding for make the field read only.
data:input type ref to cl_wd_input_field.
input ?= view->get_element( 'X' ). '' where X = ID of the input field
''then depending upon some condition if you want
input->set_read_only( value = abap_true ).
there are lots of other methods to set the property.
just check out corresponding class of the UI element.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nisha,
The best way to do such a thing is to simply create corresponding attributes in your context and bind them to the properties of your UI elements.
You can then change the context attributes as and when required and it will be reflected in the UI elements properties dynamically.
Regards,
Neha
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 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
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.