Skip to Content
0
Former Member
Jul 29, 2008 at 02:06 PM

CL_GUI_ALV_TREE Event CHECKBOX_CHANGE

540 Views

Dear Experts,

i use a tree control using class cl_gui_alv_tree.

All fields of my fieldcatalog are specified as fieldcat-checkbox = 'X' and fieldcat-edit = 'X'.

i have a global class zcl...... where i implemeted a method as event_handler for class cl_gui_alv_tree for event checkbox_change.

i set the event handler before i set_table_for_first_display.

  • Set event handler for clicks on hotspots

SET HANDLER go_qual_block->hndl_checkbox_change FOR p_go_alv_tree.

ls_header-tooltip =

ls_header-heading = 'Blocking Materials'(008).

ls_header-width = 50.

ls_header-width_pix = abap_false.

CALL METHOD p_go_alv_tree->set_table_for_first_display

EXPORTING

  • I_STRUCTURE_NAME =

  • IS_VARIANT =

  • I_SAVE =

i_default = abap_false

is_hierarchy_header = ls_header

  • IS_EXCEPTION_FIELD =

  • IT_SPECIAL_GROUPS =

  • IT_LIST_COMMENTARY =

  • I_LOGO =

  • I_BACKGROUND_ID =

  • IT_TOOLBAR_EXCLUDING =

CHANGING

it_outtab = <go_data_tab>

  • IT_FILTER =

it_fieldcatalog = lt_fcat.

.... add nodes.... frontend_update....

But when i start the program an click on a checkbox nothing happens. Is the event not triggered?

I searched for examples which handels the event checkbox_change but i don't find anything.

Is there a special handling for this event?

thanks in advance.

best regards,

Dennis