on 09-04-2013 10:41 AM
hi ,
I need to getting enable and disable input field on a click of button .
How can do?
hello Ankita,
1. Create a context attribute of type wdy_boolean with the name say "Field_enable"
2. Bind this attribute to the input field's property "enabled" in the view.
and on the action where you want to disable the inputfield just set the value of that attribute by 'ABAP_FALSE'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanx to all of U for reply , I asked this question before two weeks . Now my problem has been resolved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create an attribute say enable of type wdy_boolean in the context and bind the readOnly property of input field to the created attribute. Now in onAction of button set the attribute (enable) to abap_true/abap_false to disable/enable the input field.
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am assuming you have already bind the enable/disable property to a context node element.
All you need to do is set the property in the onaction method of the button.
Hope it helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Bind the attribute 'READ ONLY' of the input field to a context attribute which is set/reset in the action handler method for your button.
Thanks
Vipin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ankita,
You can use the following code to disable and enable the input fields.
loop at screen.
if ( ) and screen-name = 'screen field name'.
screen-input = 0. " for disable
screen-input = 1 ." for enable
modify screen.
endif.
endloop.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.