cancel
Showing results for 
Search instead for 
Did you mean: 

Disable Listbox

raja_narayanan2
Active Participant
0 Kudos

Hi....

can any one hlep me how to disable the listbox dynamically when i press a button.

Thanks in advance.

Regards

Raja

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Take an attribute of type visibility( WDUI_VISIBILITY

) of UI element.

you can bind the attribute to the UI element in this way.

lr_list = cl_wd_item_list_box=>new_item_list_box(

  • BIND_DATA_SOURCE = 'node.attribute'

BIND_VISIBLE = 'NODE.ATTRIBUTE'

  • SELECTION_CHANGE_BEHAVIOUR = E_SELECTION_CHANGE_BEHAVIOUR-AUTO

  • TEXT = TEXT

  • TEXT_DIRECTION = E_TEXT_DIRECTION-INHERIT

  • TOOLTIP = TOOLTIP

  • VIEW = VIEW

  • VISIBLE = E_VISIBLE-VISIBLE

  • VISIBLE_ITEMS = 10

  • WIDTH = WIDTH

).

(or)

lr_list->bind_visible( path = 'NODENAME.ATTRIBUTE' ).

any one you can use.

Thanks

Suman

Answers (2)

Answers (2)

raja_narayanan2
Active Participant
0 Kudos

Hi....

I solved the issue....

thanks a lot....

Regards

Raja

Former Member
0 Kudos

Create a context attribute of type wdui_visibility and bind to the 'visible' property of the UI element..In the onaction method of the button set this attribute with the value '01',which makes the listbox invisible

Regards

Tamil