cancel
Showing results for 
Search instead for 
Did you mean: 

Button enabled

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi

bind the VALUE propery of ur button with context attribute of type WDY_BOOLEAN

Former Member
0 Kudos

bind the VALUE propery of ur button with context attribute of type WDY_BOOLEAN

For making button enable/disable , we have to bind Enable property of button with an attribute of type wdy_boolean.

There is no property of button by name value.

Former Member
0 Kudos

sorry for the last post , I meant ENABLE property

Answers (3)

Answers (3)

former_member40425
Contributor
0 Kudos

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

Former Member
0 Kudos

Hi,

If u are binding button enable property with the attribute?

Former Member
0 Kudos

make the type as wdy_boolean

With attribute of type wdy_boolean, it will work.

Give it a try.

Former Member
0 Kudos

Yes, I solved!

Tks a lot!!!