2006 Aug 29 10:35 AM
Hi All,
I have used cl_column_tree_model for displaying data. When user selects a node (by clicking once on it) I wanted to get the selected node by user on the click of a button.
Details of tree control:-
Tree was created with cl_column_tree_model=>node_sel_mode_single.
Now in the PAI logic I'm using
treemodel->get_selected_node method. But its not returning any node niether is it giving any errors.
Can anyone tell me why its happening. Or any other method that can be used to get the selected node.
Thanks,
Stephen
Hi All,
I have used cl_column_tree_model for displaying data. When user selects a node (by clicking once on it) I wanted to get the selected node by user on the click of a button.
Details of tree control:-
Tree was created with cl_column_tree_model=>node_sel_mode_single.
Now in the PAI logic I'm using
treemodel->get_selected_node method. But its not returning any node niether is it giving any errors.
Can anyone tell me why its happening. Or any other method that can be used to get the selected node.
Thanks,
Stephen
2006 Aug 29 10:42 AM
Hi Stephen ,
please see the demo program "SIMPLE_TREE_CONTROL_DEMOCL1" .this will definitely help you
Edit : There is also another program called "SAPCOLUMN_TREE_MODEL_DEMO" which uses similar method mentioned my you .
Regards ,
Shounak M.
Message was edited by: Shounak M
2006 Aug 29 10:56 AM
cl_gui_column_tree doesnt have a event for node single click. it has got event for double click.
cl_gui_column_tree=>eventid_node_double_click.
if you still want single click
you can register the event
cl_gui_column_tree=>eventid_link_click and set the node item-calss as link.
Regards
Raja
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |