Button in current for that opens another form...
Button in current for that opens another form...
(OP)
Basically, I have two simple forms: Training and Attendee. Basically, I want to add a button to the Training form that will open a blank editable Attendee form. I have meeting fields in the Attendee form set to inherit Training info, but the name and address and such should be blank.
Anyone that can help me with this?
Anyone that can help me with this?
RE: Button in current for that opens another form...
Sub Click(Source As Button)
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.currentdocument
If uidoc.IsNewDoc Or uidoc.EditMode Then
Call workspace.DialogBox("Employment", True, True, True, False, False, False, "Employment Details")
Else
Call workspace.DialogBox("Employment", True, True, True, False, False, True, "Employment Details")
End If
End Sub
HTH
Leslie
landrews@metrocourt.state.nm.us
There are 10 types of people in the world -
those who understand binary
and
those who don't!
RE: Button in current for that opens another form...
Any more ideas?
RE: Button in current for that opens another form...
Do you have any buttons or anything on the Attendee form that call the 'Save' function?
Leslie
landrews@metrocourt.state.nm.us
There are 10 types of people in the world -
those who understand binary
and
those who don't!
RE: Button in current for that opens another form...
RE: Button in current for that opens another form...
Sub Click(Source As Button)
Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim uidoc As NotesUIDocument
Set db = session.CurrentDatabase
Set doc = db.CreateDocument
doc.Form = "Attendees"
set uidoc = doc
Call doc.Save( True, True )
End Sub
This will create a new document and save it
Leslie
landrews@metrocourt.state.nm.us
There are 10 types of people in the world -
those who understand binary
and
those who don't!
RE: Button in current for that opens another form...
RE: Button in current for that opens another form...
AIM: tfisbrian
RE: Button in current for that opens another form...
Leslie
landrews@metrocourt.state.nm.us
There are 10 types of people in the world -
those who understand binary
and
those who don't!
RE: Button in current for that opens another form...
RE: Button in current for that opens another form...
Leslie
landrews@metrocourt.state.nm.us
There are 10 types of people in the world -
those who understand binary
and
those who don't!