2007 Dec 05 7:33 AM
Good day.
I am working with ALV tree. I put a checkbox at each sub node using the following code:
ls_item_layout-class = cl_gui_column_tree=>item_class_checkbox.
ls_item_layout-editable = 'X'.
APPEND ls_item_layout TO lt_item_layout.
This is working fine, but now, how can I go about to know which nodes were selected by user. For example the user make his selection via checkboxes and click on a button and I need the marked(checked) data into a interal tabel for example.
If possible, please provide code.
Thanks
Hanno
Good day.
I am working with ALV tree. I put a checkbox at each sub node using the following code:
ls_item_layout-class = cl_gui_column_tree=>item_class_checkbox.
ls_item_layout-editable = 'X'.
APPEND ls_item_layout TO lt_item_layout.
This is working fine, but now, how can I go about to know which nodes were selected by user. For example the user make his selection via checkboxes and click on a button and I need the marked(checked) data into a interal tabel for example.
If possible, please provide code.
Thanks
Hanno
2007 Dec 05 7:36 AM
Hi,
Refer these standard programs
BCALV_TEST_HIERSEQ_LIST Program BCALV_TEST_HIERSEQ_LIST
BCALV_TEST_HIERSEQ_LIST_EVENTS Program BCALV_TEST_HIERSEQ_LIST_EVENTS
BCALV_TREE_01 ALV tree control: build up the hierarchy tree
BCALV_TREE_DND ALV tree control: Drag & Drop within a hierarchy
BCALV_TREE_DND_MULTIPLE ALV tree control: Drag & Drop within a hierarchy
Regards,
Prashant
2007 Dec 05 2:25 PM
Hi,
I am a bit new at ABAP and could not see how this could solve my problem. Revering to the DND multiple example. Will it handle a checkbox the same way as when normal selected by cursor, because one could use both simultaneously? I don't know. Some code will be helpful.
Thanks
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |