on 10-22-2009 10:39 AM
Hi all,
I have to make at run time enabled or not a button... I have created an attribute in my context, the type is WDY_WB_PROPERTY_BUTTON and I have associated my button at this attribute, so in the method "WDDOINIT" I write this code:
IF flag IS INITIAL.
button-ENABLED = ' '.
ELSE.
button-ENABLED = 'X'.
ENDIF.
wd_context->set_attribute(
name = 'BUTTON'
value = button ).
ENDIF.
but I don't see never my button, although flag = 'X'.... How can I do?
hi
bind the VALUE propery of ur button with context attribute of type WDY_BOOLEAN
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
create a context attribute of type wdy_boolean and bind it with the propery enable.
to enable set it as : 'X'
To disable set it : ''
i hope it helps.
Regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If u are binding button enable property with the attribute?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
make the type as wdy_boolean
With attribute of type wdy_boolean, it will work.
Give it a try.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
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.