Hi!
Please help, I've really stomped on this one.
I have 2 forms, the main form and a dialogbox-acting form.
The dialog box inherits the values from the main document. It is then saved, supposedly, as a separate document.
However, what happens is that it only replaces the document earlier saved.
This is the script I used:
Sub Click(Source As Button)
Dim ws As New NotesUIWorkspace
Dim s As New NotesSession
Dim db As notesdatabase
Dim uidoc As notesuidocument
Dim dc As notesdocument
Dim doc As NotesDocument
Dim view As NotesView
Dim propKey As String
Set uidoc = ws.currentdocument
Set db = s.CurrentDatabase
Set doc = uidoc.document
Set view = db.GetView("pb")
propKey = uidoc.FieldGetText ("propKey")
Set dc = view.GetDocumentByKey (propKey)
rankNo = doc.rankNo(0)
userName = doc.rankNo(0)
Call uidoc.FieldSetText ("bStatus","booked")
Call doc.Save (True,False)
Call ws.ViewRefresh
Call uidoc.close
End Sub
I'm really running out of ideas. Please, please help.
Thanks so much!
tin
Please help, I've really stomped on this one.
I have 2 forms, the main form and a dialogbox-acting form.
The dialog box inherits the values from the main document. It is then saved, supposedly, as a separate document.
However, what happens is that it only replaces the document earlier saved.
This is the script I used:
Sub Click(Source As Button)
Dim ws As New NotesUIWorkspace
Dim s As New NotesSession
Dim db As notesdatabase
Dim uidoc As notesuidocument
Dim dc As notesdocument
Dim doc As NotesDocument
Dim view As NotesView
Dim propKey As String
Set uidoc = ws.currentdocument
Set db = s.CurrentDatabase
Set doc = uidoc.document
Set view = db.GetView("pb")
propKey = uidoc.FieldGetText ("propKey")
Set dc = view.GetDocumentByKey (propKey)
rankNo = doc.rankNo(0)
userName = doc.rankNo(0)
Call uidoc.FieldSetText ("bStatus","booked")
Call doc.Save (True,False)
Call ws.ViewRefresh
Call uidoc.close
End Sub
I'm really running out of ideas. Please, please help.
Thanks so much!
tin