on 09-26-2007 8:20 AM
Hi Gurus,
I have a ALV with a button in the toolbar.Basically i have to change the button text each time the button is pressed.
How can i do this?
PS:points will be awarded
On your alv model, first call if_salv_wd_function_settings~get_function( ID = <your ID> ). This will return you a reference of cl_salv_wd_function. If your function uses a button editor, do the following:
data:
lr_button type ref to CL_SALV_WD_FE_BUTTON,
lr_function type ref to cl_salv_wd_function.
lr_function = l_alv_model->if_salv_wd_function_settings~get_function( ID = <your ID> ).
lr_button ?= lr_function->get_editor( ).
lr_button->set_text( ).
I have not tried this, but it should work.
Regards
Nithya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.