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: 

Wrong index being returned after the use of delete_subtree in ALV tree

Former Member
0 Kudos

Hi Experts,

I am using an ALV Tree. On some user action, i have to delete the nodes in the tree for which i use delete_subtree method of class CL_GUI_ALV_TREE.

The problem is that after deleting the nodes using this method, whenever, i select any node which was after the deleted node, the node index returned is incorrect. The node index being returned is the index before the deletion of the upper node.

Could you please help me so that i get the correct node index after using the delete_subtree method.

Your help is highly appreciated.

Thanks/Regards,

Himanshu Aggarwal.

1 ACCEPTED SOLUTION

krishnendu_laha
Active Contributor
0 Kudos

Please check if you are executing 'FRONTEND_UPDATE' method after deleting tree or not..

It is an instance method of CL_GUI_ALV_TREE, inherited from super class.

4 REPLIES 4

krishnendu_laha
Active Contributor
0 Kudos

Please check if you are executing 'FRONTEND_UPDATE' method after deleting tree or not..

It is an instance method of CL_GUI_ALV_TREE, inherited from super class.

Former Member
0 Kudos

Thanks Krishnendu for your prompt response but i was using the frontend_update method already..

I have solved the problem myself.

Thanks/Regards,

Himanshu.

0 Kudos

Please let me know the solution...

0 Kudos

Yes !!. Please let me know solution.