Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to retrieve node text from Simple tree ?

Former Member
0 Kudos
203

Hi All,

I am using class CL_GUI_SIMPLE_TREE. How do we retrieve the text that we have set for the node using the node_key ? (I dont want to change it, I just want to retrieve what has already been set)

Which method do we use ?

Regards,

Ashish

2 REPLIES 2

Sandra_Rossi
Active Contributor
0 Kudos
104

sorry this class is "too much simple". SAP recommends using tree models because they are more recent and have more options (cl_simple_tree_model in your case). See method [node_get_text|http://help.sap.com/saphelp_nw2004s/helpdata/en/28/1cfc5ecf4611d3a7030000e83dd863/frameset.htm] in cl_simple_tree_model.

Otherwise you may still use cl_gui_simple_tree, but you must keep data in memory when you build the tree.

0 Kudos
104

Thanks Sandra

Regards,

Ashish