2013 Sep 20 8:54 PM
Hello ABAP experts,
in my ALV tree control application I have a button "new node", which I would like to use to insert new nodes into the tree.
When I press the button, I want the pointer to change just like it does when doing drag and drop (except that there is no drag), until I double click one of the existing nodes. In that case the new node shall be inserted next to the selected node. What I do not want is that the user has to mark a node in advance.
Any idea if this drop without drag can be realised and how?
Eventuelly it suffices to change the pointer, Is that possible?
Thanks in advance,
Jürgen
Hello ABAP experts,
in my ALV tree control application I have a button "new node", which I would like to use to insert new nodes into the tree.
When I press the button, I want the pointer to change just like it does when doing drag and drop (except that there is no drag), until I double click one of the existing nodes. In that case the new node shall be inserted next to the selected node. What I do not want is that the user has to mark a node in advance.
Any idea if this drop without drag can be realised and how?
Eventuelly it suffices to change the pointer, Is that possible?
Thanks in advance,
Jürgen
2013 Sep 21 6:38 AM
Changing pointer would mean communicating with operating system, probably activeX controls.
I think it would be easier to set a flag and show information message in status bar when button is clicked.
Afterwards, you can handle double click event to get the location of double click, and insert new node.
New node insertion would happen only when flag is set. On every user command other than button click, flag value can be reset.
2013 Sep 21 7:58 AM
Hi Juergen Bey,
See SAP DEMO Programs
BCALV_TREE_DND
BCALV_TREE_DND_MULTIPLE