cancel
Showing results for 
Search instead for 
Did you mean: 

TextEdit UI element Enable/Disable for User input Dynamically Webdynpro

Former Member
0 Kudos

Hi Experts,

I have an TextEdit UI element in my Output and this needs to be Enable/Disable for User input Dynamically based on a condition. Buy default it will be enabled for user input.

As CL_WD_TEXT_EDIT is a protected class, I have created custom class as a sub class of CL_WD_TEXT_EDIT and tried SET_ENABLED and SET_DISPLAY_ONLY both the methods. But it's not working for me.

Please suggest is there any way to achieve the same.

Thanks,

Viswanath

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

Hi,

Bind the Read_Only/Enabled property of the UI element to attribute of type WDY_BOOLEAN and dynamically set it to true/false based on the condition.

Check the below docs for reference:

Simple application to change properties of UI Elements during runtime in Web Dynpro ABAP - Web Dynpr...

Regards,

Kiran

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Kiran,

Bind the Read_Only/Enabled property of the UI element to attribute of type WDY_BOOLEAN and dynamically set it to true/false based on the condition.


This solution is working.


Thanks all for your answers.


Former Member
0 Kudos

Try SET_READ_ONLY. Please post your code if this doesn't work

former_member227911
Participant
0 Kudos

Hi,

Kindly share your code. So that i can help you in your part.

Regards,

sadiq K