Skip to Content

Checkbox ALV Tree CL_GUI_ALV_TREE

Hi,

I created an ALV Tree with 3 node levels like in the following:

LEVEL 1 - with checkbox

LEVEL 2 - with checkbox

LEVEL 3 - leaf without checkbox.

My ideea is to control the checkbox of LEVEL 2 if the users checks or unchecks the checkbox from LEVEL 1 (or viceversa).

I can control the checkbox very well at the beginning, for the method set_table_for_first_display. Also unchecking or checking works fine for one item. However I am not able to change the value of the checkbox of another item than the one selected.

I tried till now to use the method CHANGE_NODE which I call at the event CHANGE_CHECKBOX, but I don't see anything changed in regards with the other item, than the one selected, that I want to change. I also cleared the field CHECKBOX of the outputed structure. No results however.

Is it possible to change the ALV Tree checkbox field of another item(node) when I check/uncheck another item, or generally speaking when a particular events is raised? Or the value of the checkbox can be modified only by the user? I though as long as I am able to check the checkbox when the alv tree is created I am also able to change it programatically when a particular event occurs.

Thanks in advance for your support,

Florin

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on May 12, 2011 at 08:30 AM

    Hi.,

    I think you forgot to refresh table., use refresh table display method and change and the again call set table for first display method.

    hope this helps u.,

    Thanks & Regards

    Kiran

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Kiran,

      I am not able to use refresh_table method. I use instead CALL METHOD gr_alv_tree->frontend_update. Again same result. I don't see any changes.

      I can not use the refresh_table method due to the fact that this is private method of the class cl_gui_alv_tree.

      Kind regards,

      Florin

  • Posted on May 16, 2011 at 08:35 PM

    I solved myself.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.