Hi
I have been having a first play with Servoy’s DBTreeView having previously used Dr Maison’s version. The reason for the change is to allow web clients to see the bean which does not see possible with Dr Maison’s.
What I need to happen is a facility where the user drags a record over the tree and as they drag over each node of the tree it will allow them to drop into the node OR open the node. This certainly works with Dr Maisons bean, however the process is different for Servoys version. SO two questions:
Is it possible to drop content from one form into the node of a tree on another form
Is there any one who has either done this and can share how OR any instructions how because the various docs and examples don’t cover this use case
the dbtreeview bean that comes with Servoy 6, does have support
for drag&drop, see its setOnDrag, setOnDragEnd, setOnDragOver, setOnDrop methods.
Those are working in the similar way like the same methods from the forms.
I will do a sample, asap, and will post on the forum
Thanks for the reply, not sure its what I wanted to hear but will save be a lot of time trying to track down the problem!!
I have got the tree to do the same as the example drag_n_drop_sample i.e. drag records to the form and do stuff, so we will have to come up with a work around.
On the subject of the drag_n_drop_sample from Servoy example 5 does not work - I am not sure where to report this but its a critical feature that I need i.e. Drag an item from the desktop to a servoy solution and then deal with the result. Current requirement mentioned a week ago was drag image file i.e. scan from desktop to Servoy and stream this to the server. So far the only way I have been able to make this work was with Patricks bean in V 5.2
Hi Patrick
I have just changed over to 6, took your advice on 5 and it works, however need for various reasons to move to 6, will try this again with your post info - first try failed, but I have now done a lot more with 6 so will give it another go
Firstly can I thank Patrick and Gabi for their input and to Patrick for testing the demo solution I posted.
The issue is in fact a Servoy bug. On the Mac you can not drag a file onto Servoy and have Servoy 6 trigger a onDrop event. However on Windows this is not a problem, so the solution posted by Patrick does work perfectly on Windows.
I will post this on the Servoy bug list and hopefully it can be fixed in the future issue. Also needless to say I suspect the Demo drag and drop solution example 5 will work seamlessly on Windows as expected, Macs will have to wait !
This us exactly the problem and I posted a bug issue yesterday, I don’t have the Id to hand. Attached to the bug report is a solution which works on pc with Patricks observations and fails on the Mac.