Drag and drop from tree view

any alternative way can we do?

What does this print out?:

print event.source.getLocation()
print listComponent.getLocation()

image

Still trying to get my head around what's happening here. Perhaps the is problem is happening because the components are in template containers. Check this and see if we get the expected locations:

print event.source.parent.getLocation()
print listComponent.parent.getLocation()

its working now
listComponent = system.gui.getWindow("Data_Superstore/DS_AddMyFav").rootContainer.getComponent('Group 5').getComponent("List")

replaced above line with

listComponent = system.gui.getWindow("Data_Superstore/DS_AddMyFav").rootContainer.getComponent('Group 5')

calling up to group 5

its working now

1 Like

Excellent. I'm glad this is sorted out

1 Like

next think i am going to work on multiple drag and drop

1 Like

See this post for a solution which will handle both multi and single selection.

2 Likes