cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP Webdynpro : How to make text box enable

Former Member
0 Kudos

Hi Team,

Need small help.

I have 3 radio button and a text box field. I want to make text box input-enable only when 3rd radio button is clicked, else , it should be input disabled.

Please suggest.

Warm Regards

Krishan

Accepted Solutions (0)

Answers (2)

Answers (2)

uppu_narayan
Active Participant
0 Kudos

Hi Krishnan,

     create a attribute of type wdy_boolean and bind the enabled property of the textbox with this attribute. on select of any radio button manipulate the value of this attribute using the onSelect event of the radio button.

thanks and regards,

narayan

Former Member
0 Kudos

Dear Narayan,

Thank you so much for your valuable input...issue resolved.

Former Member
0 Kudos

Create a New attribute in context of your view as BOOLEAN type , Bind this property to textbox Enabled property in the view.

set this as ABAP_TRUE / ABAP_FALSE depend upon radio button selection

Former Member
0 Kudos

Hi Krishan,

Create a variable of type wdy_boolean in the respective node.

Bind this attribute to the enable property of the text box

Provide the logic based on the selection of radio button.

Suppose if there are three buttons namely rb1,rb2 and rb3 and the attribute TB_ENABLE.

if rb3 is selected.

    tb_enable = abap_false.

endif.

JonathanM
Contributor
0 Kudos

Hi,

You should make input field of your 3 text buttons, bind those with a context variable that would be adapted by your method behing the change of selection of your radiobuttons.

For example:

R1 checked --> text1 enabled, text2 disabled, text3 disabled

Best regards,

Jonathan

Former Member
0 Kudos

Create a New attribute in context of your view as BOOLEAN type

Bind this property to your textbox Enabled property in the view.

Change this property on select of radio button as ABAP_TRUE / ABAP_FALSE.

Former Member
0 Kudos

Thank you so much for your valuable input...issue resolved.