redbeard411
Programmer
I am creating a button to create a connection document and can fill in all the fields except the ConnectionType. Here is the code:
Sub Click(Source As Button)
'set new workspace
Dim workspace As New NotesUIWorkspace
'front end of document
Dim uidoc As NotesUIDocument
'set current document
Set uidoc = workspace.currentdocument
'define variable
Dim reason As Variant
'define variable
Dim database As Variant
'define variable
Dim server As Variant
'name of notes database between quotes
database="names.nsf"
'name of server running on between quotes
server=""
'compose document with the form called in the FORM_NAME code section.
'the main advantage of doing it this way you can also create a new
'document in a seperate database if you use the DATABASE and
'SERVER entries.
Set uidoc = workspace.ComposeDocument(server,database,"Connection"
Call uidoc.FieldSetText("ConnectionType", "0"
Call uidoc.FieldSetText("LanPortName", "TCPIP"
Call uidoc.FieldSetText("Destination", "MyBD"
Call uidoc.FieldSetText("ConnectionLocation", "*"
Call uidoc.FieldSetText("OptionalNetworkAddress","MYDB.com"
End Sub
My thought is to add a save and close @ the end then open the database I am sending with it as well. The problem is with
Call uidoc.FieldSetText("ConnectionType", "0"
It continues to wait for the click of the selection for connection type (I am using Local Area Network|0
Sub Click(Source As Button)
'set new workspace
Dim workspace As New NotesUIWorkspace
'front end of document
Dim uidoc As NotesUIDocument
'set current document
Set uidoc = workspace.currentdocument
'define variable
Dim reason As Variant
'define variable
Dim database As Variant
'define variable
Dim server As Variant
'name of notes database between quotes
database="names.nsf"
'name of server running on between quotes
server=""
'compose document with the form called in the FORM_NAME code section.
'the main advantage of doing it this way you can also create a new
'document in a seperate database if you use the DATABASE and
'SERVER entries.
Set uidoc = workspace.ComposeDocument(server,database,"Connection"
Call uidoc.FieldSetText("ConnectionType", "0"
Call uidoc.FieldSetText("LanPortName", "TCPIP"
Call uidoc.FieldSetText("Destination", "MyBD"
Call uidoc.FieldSetText("ConnectionLocation", "*"
Call uidoc.FieldSetText("OptionalNetworkAddress","MYDB.com"
End Sub
My thought is to add a save and close @ the end then open the database I am sending with it as well. The problem is with
Call uidoc.FieldSetText("ConnectionType", "0"
It continues to wait for the click of the selection for connection type (I am using Local Area Network|0