cancel
Showing results for 
Search instead for 
Did you mean: 

How to Hide/Display by button click

Former Member
0 Kudos
47

Hi All,

i want to hide/display a group of elements which is created in a group by a button click.

Thanks,

Raju.

Accepted Solutions (1)

Accepted Solutions (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

create a context attribute in the context VISIBLE of type WDUI_VISIBILITY

bind the visible property of all the UI elements to this attribute in the layout

on button click event handler set this

data: lv_visible type wdui_visibility

wd_context->get_attribute( exporting name = 'VISIBLE' importing value = lv_visible ).

if lv_visible eq if_wdl_core=>visibility_visible.

wd_context->set_attribute( name = 'VISIBLE' value = if_wdl_core=>visibility_none ).

else

wd_context->set_attribute( name = 'VISIBLE' value = if_wdl_core=>visibility_visible ).

endif.

Abhi

Answers (0)