Click or drag to resize

ITravelInterfaceUAGeneratePrototype Method

UAGeneratePrototype

Unattended.

Generate non-satellite areas unattended (use SuperOffice Travel Gateway)

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

Parameters

AreaId
Type: SystemInt32
<p>Long - area id</p> <p>Preference Travel,GWSilent show progress bar when = 0</p>

Return Value

Type: Boolean
Boolean – true if operation succeeded
Examples

UAGeneratePrototype

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

UAGeneratePrototype(1)

Database.preferences.set(Travel, GWSilent, 0)

This may be used to run an unattended Read updatefile (in SuperOffice travelgateway). AreaID must be a valid area, not a satellite. 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.UAGeneratePrototype(1) Then
        ObjSO.Database.Preference.Set "Travel", "GWSilent", 0
        MsgBox "The prototype for area 1 is generated."
    Else
        MsgBox " Area 1 may not be a valid area. Check log file for error message."
    End If
Else
    MsgBox "Could not log in"
End If
Set objSO = Nothing

See Also