I found this script on this forum and it works really well to create the location document titled ‘Office(Network)’. How do I add/modify this script so it will go through and create one more location called ‘Disconnected’?I have no knowledge of Lotus Script, and will greatly appreciate any help.
Thank You
Helen
Script:
Sub Click(Source As Button)
Dim db As NotesDatabase
Dim doc As Notesdocument
Dim session As New NotesSession
Set db = session.GetDatabase("", "names.nsf")
If db Is Nothing Then
Messagebox "Sorry, names.nsf not found!"
Exit Sub
Else
Set doc = New NotesDocument(db)
doc.Form = "Location"
'These are the base fields.
'Change them to suit your needs, and include more based on your needs.
'The LocationType 0 is for Local Area Network.
'Change this according to Dialup, etc.
doc.MailServer = "My Server Name"
doc.Domain = "My Domain"
doc.Name = "Office(Network)"
doc.LocationType = "0"
doc.DefaultPassthruServer = ""
doc.CatalogServer = ""
doc.DirectoryServer=""
doc.SametimeServer="My Sametime Svr"
doc.MessageFormat="0"
doc.WebRetriever="2"
If doc.ComputeWithForm(True, True) Then
Call doc.save(True, True)
Msgbox "Location document successfully created!"
End If
End If
End Sub