cancel
Showing results for 
Search instead for 
Did you mean: 

Disable the button after single click in webdynpro

Former Member
0 Kudos

Dear Experts,

Can anyone me know how to disable the button after single click in webdynpro?

Katrice

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Katrice,

Please do the following:

1. Create an attribute say 'ENABLE_BUTTON' of type Boolean in your context.

2. Bind this to the property 'Enabled' of the button.

3. Initially you need to pass value ABAP_TRUE to this attribute. You can do it in WDDOINIT method.

4. In the action handler method of this button, set the value of this attribute to ABAP_FALSE.

This way when the app opens, the button will be enabled. But once the user clicks on the button, the button will get disabled.

Former Member
0 Kudos

Thanks Khushboo for your reply.

Katrice

Answers (0)