on 02-13-2012 5:36 AM
Hi,
I have a requirement, when i click on button all the fields and labels in the form will be disable .
Create a New Attribute(say flag ) with type WDY_BOOLEAN . and bind this attribute to the enable property of the fields which you want to enable/disable.
And onaction button method. Set/Reset this by flag = 'X' or Space. and bind this attribute.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
For this you need to create an attribute in context of type wdy_boolean and bind the read only property of all the input fields and labels to the created attribute and in on action of the button set the attribute to true using set_attribute method of context element.
detailed:
Click on input field in the layout, under properties you can find read only, click on the binding button corresponding to read only and select the attribute which you created in context of type wdy_boolean.
in onAction button method,
set the attribute to 'X' or abap_true
Hope this helps u.,
Thanks & Regards,
Kiran.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You code wizard, in popup select set radio button and select the attribute and click on Ok, It will generate code automatically. Else find the below code
DATA lo_el_context TYPE REF TO if_wd_context_element.
lo_el_context = wd_context->get_element( ).
CALL METHOD lo_el_context->set_attribute
EXPORTING
name = `DISABLE` " Here disable is the name of attribute which u created in context of type wdy_boolean
value = 'X' .
Hope this helps u.,
Thanks & Regards,
Kiran.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.