you also have getFormName and getElementName (also getSource) on the event; maybe these methods help you ?
I already use these methods in this part of code:
function onTaskDrop(_event) {
var _formName,_elementName,_newY,i
for(i in _event.data){
_formName = _event.getFormName()
_elementName = _event.data[i].getName()
_newY = forms[_formName].elements[_elementName].getLocationY()
globals.saveNewY(_elementName,_newY)
}
during evaluation of
_newY = forms[_formName].elements[_elementName].getLocationY()
the Client go in error.
I have modified the ‘test_drop’ solution to reproduce this case:
[attachment=0]test_drop.servoy[/attachment]
So try with this solution to move all the button,after some movement the client go in crash
test_drop.servoy (4.52 KB)