how to get drop row record during drag n drop in servoy 5

Questions, tips and tricks and techniques for scripting in Servoy

how to get drop row record during drag n drop in servoy 5

Postby motorup » Tue Dec 01, 2009 3:59 pm

Hi all, I just began to use Servoy 5 new drag n drop feature.

It almost complete... Did anyone figured out how to determine on what record the user dropped?

By using the event object generated by servoy, it's possible to get the destination form name, element name, column name... but not the record that was dropped on.

Without this feature it's impossible to reorder record using drag n drop since you need to obtain the dropped on record sort order.

Thanks

Philippe
motorup
 
Posts: 26
Joined: Sun Apr 13, 2008 5:24 pm
Location: Québec, Canada

Re: how to get drop row record during drag n drop in servoy 5

Postby patrick » Tue Dec 01, 2009 4:19 pm

I remember a discussion at ServoyCamp about this. Currently, there is no way as far as I recall. I think what you could do is make a request in the support system to have a dropIndex added to the event. That would be the index of the row the user dropped on.
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Re: how to get drop row record during drag n drop in servoy 5

Postby jcompagner » Mon Dec 07, 2009 4:54 pm

yes please make a case for this.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8828
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: how to get drop row record during drag n drop in servoy

Postby maria » Thu Jun 07, 2012 9:18 am

Hi All,

So, do we have dropIndex in Servoy 6.1? :D

Cheers,
Maria
maria
 
Posts: 424
Joined: Thu Apr 16, 2009 1:18 am
Location: Sydney

Re: how to get drop row record during drag n drop in servoy

Postby maria » Thu Jun 07, 2012 9:31 am

Sorry, found it :D event.getRecord()

Cheers,
Maria
maria
 
Posts: 424
Joined: Thu Apr 16, 2009 1:18 am
Location: Sydney


Return to Methods

Who is online

Users browsing this forum: No registered users and 9 guests