ITravelInterfaceWriteFile Method |
This will show the Active Travel Users dialog as long as the associate/user logged in to the database has permission to see it (User level 0 or a travel user).
This dialog is used to 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
WriteFile
This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.
Dim objSO Dim objTI Set objSO = CreateObject("SuperOffice.Application") If not (objSO is nothing) Then Set objTI = objSO.Database.TravelInterface If objTI.WriteFile Then 'The active travel users dialog will be shown in GUI MsgBox "Update files was successfully written." Else MsgBox "Update files was not successfully written, the currently logged in associate might not have the correct permissions. Check log file for error message." End If Else MsgBox "Could not log in" End If Set objSO = Nothing