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: 

selecting lines in cl_gui_alv_tree?

0 Kudos

Hej together,

does anybody of you know if it is possible to select complete lines in a cl_gui_alv_tree?

I do remember it is possible to select (multiple) lines in an alv-grid. But I don't know how to so in gui_alv_tree.

Any suggestions?

Thanks in advance!

BS

8 REPLIES 8

former_member188685
Active Contributor
0 Kudos

HI,

you have methods to get the info of the selected nodes,

and selected items in alv tree.

for nodes-><b>GET_SELECTED_NODES</b> of cl_gui_alv_tree

for items-><b>GET_SELECTED_ITEM</b> of cl_gui_alv_tree

Regards

vijay

0 Kudos

Hej,

thanks till now. I'm not sure if they'll do what I want. To assure the functionality will be there after implementing - excuse me - I ask before I will start doing it.

Is it really possible to select <b>multiple</b> nodes? And if how do I select multiple? I tried using CTRL & clicking in an example but that didn't work so far.

BS

0 Kudos

hi,

CTRL+ select will not work.

regards

vijay

0 Kudos

Hej Vijay,

do you have any clue how it should work?

Thank you very much for your fast response,

BS

0 Kudos

i am looking for some solution,

Yes, i found one example in which i'm able to select multiple nodes with the help of CTRL.

you can also see this example..

<b>RCCUBD00</b>

for multiple selection you need to do this..

CREATE OBJECT tree
        EXPORTING
          parent    = control_container
          node_selection_mode =
           cl_gui_column_tree=>node_sel_mode_multiple
                item_selection      = 'X'
                no_html_header      = 'X'.

Regards

Vijay

0 Kudos

Hej Vijay,

funny. Just a few minutes ago I found this init_tree_control option either.

@All authors: Thank you very much for your fast responses.

Have a nice day!

BS

Former Member
0 Kudos

Former Member
0 Kudos

Refer to this link : (May help you)

http://www.sapdevelopment.co.uk/saptalk/saptalkinctop.htm

Cheers

Sunny