Altova XMLSpy 2025 Enterprise Edition

Event: OnBeforeDrop(objXMLData as XMLData) as Boolean

 

XMLSpy scripting environment - VBScript:

Function On_BeforeDrop(objXMLData)

 ' On_BeforeStartEditing = False  ' to prohibit dropping

End Function

 

XMLSpy scripting environment - JScript:

function On_BeforeDrop(objXMLData)

{

 // return false;  /* to prohibit dropping */

}

 

XMLSpy IDE Plugin:

IXMLSpyPlugIn.OnEvent (5, ...)        // nEventId = 5

 

Description

This event gets fired on an attempt to drop a previously dragged XMLData element on the grid view. Return false to prevent the data element to be moved from its original position to the drop destination position.

 

 

© 2018-2024 Altova GmbH