Altova Authentic 2024 Desktop


Home Prev Top Next

Event: OnBeforeShowSuggestions() as Boolean



This event gets fired before a suggestion window is shown. The Document property Suggestions contains a string array that is recommended to the user. It is possible to modify the displayed recommendations during this event. Before doing so you have to assign an empty array to the Suggestions property. The best location for this is the OnDocumentOpened event. To prevent the suggestion window to show up return false and true to continue its display.



Given below are examples of how this event can be scripted.


XMLSpy scripting environment - VBScript:

Function On_BeforeShowSuggestions()

End Function


XMLSpy scripting environment - JScript:

function On_BeforeShowSuggestions()




XMLSpy IDE Plugin:

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



© 2018-2024 Altova GmbH