Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to enable / disable my UI elements.

Hi,

I have 2 UI (Input field) in my layout ,both are set to disabled in properties.

Also i have a button called EDIT,so whenever i click this button during runtime , these inputfields has to get enabled.

How i can get this ?

Please help me.

Regards

Siva

replied

Hi Siva,

You aren't getting the desired output coz you have bound the input fields to the wrong attributes. In order to make your input fields enabled from disabled mode you are modifying the attribute (of type ABAP_BOOL) value to X from the default ' '. If you had bound this attribute to the ENABLED property of your input field the field would have got enabled as how desired. But you have mistakenly bound this attribute to the VALUE property of the input field. Because of this the field remains as disabled and then displays a value of X inside it after pressing on the button. I hope that you have understood what I have explained. Just check & correct which properties you have bound your attributes to.

Regards,

Uday

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question