Skip to Content
0
Mar 25, 2009 at 02:22 PM

Using CheckBox in ALV Tables via cl_salv_wd_uie_checkbox: event on clicking

392 Views

Hi,

in our web dynpro application we implemented an alv table using SALV_WD_TABLE.

In the table we display in two columns a button and a checkbox. Coding is done in method WDDOINIT of the view. See coding a the end of this post.

In the view method tab we created a event handler method GetEventOnClick which for the ON_CLICK event of the ALV component. In the method GetEventOnClick we try to get the event information.

Testing the web dynpro application the following issues occurs:

- click on button works fine, we get the event information ON_CLICK of ALV component

- click on checkbox -> ON_CLICK of ALV component is not fired

Which event is fired by the ALV table when clicking on the checkbox in the column??

Thanks for your help.

Best regards

Lothar

============== Coding WDDOINIT ============================

data: lr_column type ref to cl_salv_wd_column,

lr_checkbox type ref to cl_salv_wd_uie_checkbox.

lr_column = l_value->if_salv_wd_column_settings~get_column( 'POTENTIAL' ).

create object lr_checkbox

exporting

checked_fieldname = 'POTENTIAL'.

lr_checkbox->set_enabled( abap_true ).

lr_column->set_cell_editor( lr_checkbox ).

  • Display button in column VALUE

data: lr_button type ref to cl_salv_wd_uie_button.

lr_column = l_value->if_salv_wd_column_settings~get_column( 'VALUE' ).

create object lr_button.

lr_button->set_text_fieldname( 'VALUE' ).

lr_column->set_cell_editor( lr_button ).