cancel
Showing results for 
Search instead for 
Did you mean: 

Set read only for Dropdown list in Web Dynpro

0 Kudos

Hi WD Developers,

I need help regarding Web Dynpro enhancement - need to set drop down -> as read only.

The read only code which is used for setting field as READ ONLY doesn't seem to work in case of Drop down.

Method which didn't work out for Drop down (1. lo_el_purch_group_dropdown->set_static_attributes 2.lo_el_purch_group_dropdown->set_attribute)

Thanks,

Rohan

Accepted Solutions (1)

Accepted Solutions (1)

former_member199125
Active Contributor
0 Kudos

what happen when you bind an boolean attribute to read only property of dropdown element?

and what exactly is your requirement?

Regards

Srinivas

Answers (2)

Answers (2)

Lukas_Weigelt
Active Contributor
0 Kudos

Can you specify the application you are working on?

Srinivas has suggested binding an attribute to the read-only property, which should be working.

The other way is going over the view APi, cast it down and set the Read-Only property over the respective UI-Class.

Cheers, Lukas

Former Member
0 Kudos

Hi,

Just create an attribute of type boolean and bind it to the read only property of the drop down box. Whenever you want to make the drop down box read only, you just set the value for the attribute as apab_true.

Regards

Fareez