Click or drag to resize

ITravelInterfaceUAWriteFile Method

UAWriteFile

Unattended.

Write the *.up or *.dwn file to a central or travel database. This file has information regarding changes in the central or travel database. (Replication info)

CanWriteFile is called before this function, and if CanWriteFile returns False, this function will not be performed. In the central database all users with User Level 0 may write files.

In a travel database, the only associate who is allowed to generate these files is the owner of the travel database. Administrator does not have access to a travel database.

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
bool UAWriteFile(
	int DbId
)

Parameters

DbId
Type: SystemInt32
<p>Long DBID = associate id</p> <p>Preference Travel,GWSilent show progress bar when = 0</p>

Return Value

Type: Boolean
Boolean – true if operation succeeded
Examples

UAWriteFile

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

This may be used to run an unattended Read updatefile (in SuperOffice travelgateway). DBID must be a valid travelling associate. The database preference is set so the progress bar will not be shown.

VB
Dim objSO 
Dim objTI 
Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
    Set objTI = objSO.Database.TravelInterface
    If objTI.UAWriteFile(1) Then
        ObjSO.Database.Preference.Set "Travel", "GWSilent", 0
        MsgBox "The files for associate_id = 1 are written."
    Else
        MsgBox " The associate may not have the correct permissions. Check log file for error message."
    End If
Else
    MsgBox "Could not log in"
End If
Set objSO = Nothing

See Also