on 10-02-2007 4:43 PM
Hi all,
I have an UI element 'submit' of type button which is not enabled,
now i do some calculations and based on the output of the calculation i want to enable the button?
i found out the class CL_WD_BUTTON and method SET_ENABLED for this,
now how do i set the property for this ui element dynamically?
Thanks in advance.
Hi, Gerad,
In you view, there's the WDDOMODIFYVIEW. It has a VIEW parameter. Now, assuming your button is named SUBMIT, you would do something like this:
data: lr_button type ref to cl_wd_button.
lr_button ?= view->get_element( 'SUBMIT' ).
if <condition to enable>.
lr_button->set_enabled( abap_true ).
else.
lr_button->set_enabled( abap_false ).
endif.
Regards,
Andre
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.