2007 May 15 10:50 AM
hi folks,
i'm using this class to build an alv tree, besides i have functions (in a toolbar) to interact with the tree.
now i found out that get_selected_nodes etc. does not work with this kind of tree, with cl_gui_column_tree this worked?
can this be achieved to work?
regards oliver
hi folks,
i'm using this class to build an alv tree, besides i have functions (in a toolbar) to interact with the tree.
now i found out that get_selected_nodes etc. does not work with this kind of tree, with cl_gui_column_tree this worked?
can this be achieved to work?
regards oliver
2007 May 15 11:23 AM
Hello Oliver
Using the CL_SALV_... classes you have to think even more in an OO-based manner. Class CL_SALV_TREE does not have a method GET_SELECTED_NODES but a method <b>GET_SELECTIONS</b> which, no surprise, returns a <i>selection instance</i> (CL_SALV_SELECTIONS_TREE). This class now has the required methods (e.g. GET_SELECTED_NODES, SET_SELECTED_ITEM, GET_SELECTED_COLUMNS).
Method GET_SELECTED_NODES return a table with the selected nodes which, no surprise, are returned as <i>node instances</i>.
Regards
Uwe
2007 May 15 11:50 AM
hi
good
go through this link,hope help you to solve your problem
http://www.sap-press.de/download/dateien/1227/sappress_abap_objects.pdf
thanks
mrutyun^
2007 May 15 11:59 AM
hi,
yeah i know i get an instance to the selections, but my problem is that the alv tree makes no walk thru pai so whatever i select i get always the first selection i made.
after i force the system to do one pai i get the new selection.
it seeams that cl_salv_tree works differnt to cl_gui_column_tree
As i don't want to integrate my functions in the toolbar of the tree, i integrated this functionality in a seperate toolbar where i want to get th selected nodes....
kind regards oliver
2007 May 15 12:33 PM
solved my own:
you have to call get_metadata to get data back from frontend
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |