cancel
Showing results for 
Search instead for 
Did you mean: 

wda dynamic programming

Former Member
0 Kudos

Hi,

How can we dynamically set the properties of the ui elements in wed dynpro abap?

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

hi

good

go through this link hope this ll help you to solve your problem,

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6fdae690-0201-0010-a580-d104b459...

thanks

mrutyun^

alejandro_bindi
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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