Identify where I drop my record

Hi, I have a question:

I want to order my records by using drag n drop(form in table view)
At now I’m able to caught the record that I want move but I can’t identify how is the record in wich I perform the drop.

For example:
[attachment=1]dnd.JPG[/attachment]
In this image we can see that I’m dragging a record with mach_id = 1744 and I’m dropping it on the record with mach_id = 1741.
The problem is that I haven’t found a way to catch this paramether “value” that contains the id of the record in wich I perform the drop action:
[attachment=0]dndvalue.JPG[/attachment]

Does exist a way to caught this value?

Thanks in advance

Marco

dndvalue.JPG

there is a feature request for this already, to give you the index of the foundset you are dropping into.

ok I’ll wait for this enhance!

Just some seconds ago I have found an alternative way to do this but is a trick ^^‘’
so I’ll replace it when this enhance is ready!

Thanks

Marco

Hi all!

Is this feature ready?

And if yes: What have I to do to use it?

Thanks in advance

Marco

hi,

in the upcoming major release of Servoy, there is an enhancemen that will allow access to the record of the
element you are dropping on

Hi,

Thanks for the info Gabi

Marco R.:
ok I’ll wait for this enhance!

Just some seconds ago I have found an alternative way to do this but is a trick ^^‘’

Can you please share if there is any alternative to do so.

Thanks

Unfortunately now it doesn’t work but this was the principle:
[attachment=0]img.PNG[/attachment]

Watch the image above, into the DROP event you can see that the function .getSource() is returning a string.
I’ve split the string with the “:” character and I’ve taken the last array element that I’ve obtained.
This was the id of the record in wich you perform the drop…this some time ago, now (maybe after some fix) .getSource() return always the id of dragged record instead the id of the record in wich I’ve dropped.

getSource() doesn’t return string… Thats just the tostring implementation of the TypeAhead field.
So it really returns the element with the name mach_id which is a TypeAhead field.