Click or drag to resize

IScriptingEventsOnBeforeWriteReplicationFile Method

Called before a replication file is written, even if it later turns out there are no data to be written; the given path is the destination for the file(s)

Namespace:  SuperOffice.COM.ScriptEvents
Assembly:  Scripting.Interop (in Scripting.Interop.dll) Version: 8.0.0.0
Syntax
void OnBeforeWriteReplicationFile(
	int travellerid,
	string filepath
)

Parameters

travellerid
Type: SystemInt32
filepath
Type: SystemString
Examples

Description

This text may be copied to the notepad, and saved as a *.vbs file.

VB
Sub OnBeforeWriteReplicatonFile

    If Database.DataSourceVariant = 1 Then 'enDBVariantTravel
        SOMessageBox "New updates will be written to the central database with information from your database"
    ElseIf Database.DataSourceVariant = 0 Then 'enDBVariantCentral
        SOMessageBox "New updates will be written to travellers and satellite databases with information from the central database"    
    ElseIf Database.DataSourceVariant = 2 Then ' enDBVariantSatellite
        SOMessageBox "New updates will be written to travellers and the central database with information from the satellite database"    
    End If


End Sub

See Also