on 05-30-2011 2:15 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
User | Count |
---|---|
85 | |
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.