Altova Authentic 2024 Desktop

Event: OnBeforeSaveDocument(objDocument als Document, objDialog als FileSelectionDlg)

 

Skripting-Umgebung - VBScript:

Function On_BeforeSaveDocument(objDocument, objDialog)

End Function

 

' old handler - now obsolete

' return string to save to new file name

' return empty string to cancel save operation

' return nothing to save to original name

Function On_SaveDocument(objDocument, strFilePath)

End Function

 

Skripting-Umgebung - JScript:

function On_BeforeSaveDocument(objDocument, objDialog)

{

}

 

// old handler - now obsolete

// return string to save to new file name

// return empty string to cancel save operation

// return nothing to save to original name

function On_SaveDocument(objDocument, strFilePath)

{

}

 

IDE Plugin:

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

 

Beschreibung

Dieses Event wird bei jedem Versuch, ein Dokument zu speichern ausgelöst. Das Dialogfeldobjekt zur Dateiauswahl wird mit dem für die Dokumentdatei gewählten Namen initialisiert. Sie können diese Auswahl ändern. Um mit dem Speichern des Dokuments fortzufahren, belassen Sie die Eigenschaft FileSelectionDlg.DialogActionvon io_objDialogauf ihrem Standardwert spyDialogOK. Um das Speichern des Dokuments abzubrechen, setzen Sie diese Eigenschaft auf spyDialogCancel.

© 2017-2023 Altova GmbH