cancel
Showing results for 
Search instead for 
Did you mean: 

set visible/invisible button in a Table UI element

Former Member
0 Kudos

hello all,

i have created an extra button in a table Ui elemt, and i want to make this button visible or invisible, depending on the requirement,

this button has been created in the comp controller and will be triggred in the view.

how can do that please?

thaqnk you all

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Create one attribute of type WDUI_VISIBILITY, and bind it to button VISIBLE property.

and set to ABAP_TRUE or FALSE Based on some condition.

lr_ele->set_attribute( 
name = 'VISIBLE'               // your attribute which is bind to visible property of button
value =  ABAP_FALSE ).

Cheers,

Kris.

Edited by: kissnas on May 30, 2011 3:37 PM

Former Member
0 Kudos

Hi Kissnas,

thank you very mucht for your help, but this new button that i created, it was not created in the layout , but using the methode

IF_SALV_WD_FUNCTION_SETTINGS~create_function( id = 'MY_BUTTON' ).

Former Member
0 Kudos

Hi

you have to clear about your q's, you simply said table.

Please check this...

Cheers,

Kris.

Former Member
0 Kudos

Hi Kissnas,

>

> thank you very mucht for your help, but this new button that i created, it was not created in the layout , but using the methode

>

> IF_SALV_WD_FUNCTION_SETTINGS~create_function( id = 'MY_BUTTON' ).

result of the create function you must be having a object of type CL_SALV_WD_FUNCTION.

Say for example lo_function.

lo_function->set_visible( cl_wd_uielement=>e_visible-visible)

or

lo_function->set_visible( cl_wd_uielement=>e_visible-none)

Former Member
0 Kudos

Problem solved

thank you all

Answers (0)