ITravelInterfaceUAReadFile Method |
Unattended.
Read update files (the *.up or *.dwn files) into the travel or central database for a travel user. This file has information regarding changes in the central or travel database. (Replication info).
CanReadFile is called before this function, and if CanReadFile returns False, this function will not be performed. In the central database all users with User Level 0 may read files.
In a travel database, the only associate who is allowed to read these files is the owner of the travel database. Administrator does not have access to a travel database.
Namespace: SuperOffice.COM.SuperOfficeDB
UAReadFile
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.
Dim objSO Dim objTI Set objSO = CreateObject("SuperOffice.Application") If not (objSO is nothing) Then Set objTI = objSO.Database.TravelInterface If objTI.UAReadFile(1) Then ObjSO.Database.Preference.Set "Travel", "GWSilent", 0 MsgBox "The files for associate_id = 1 are read in to the database." 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