How to enable / disable my UI elements.
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.
Uday Gubbala replied
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.