csiwa28
Programmer
- Apr 12, 2001
- 177
From a response doc I have an action button that will open up a document (parent) by it UNID. The UNID is stored on a hidden field on the response doc called ParentID. When I click the button it says that the object variable is not set. I still don't understand the whole front and back end class variables (i.e which and when to use them). Here's what I have, what's wrong with it?
Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim parent As NotesDocument
Dim uidoc As NotesUIDocument
Dim w As New NotesUIWorkspace
Set db = session.CurrentDatabase
Set uidoc = w.currentdocument
Set doc = uidoc.document
Set parent = db.GetDocumentByUNID(doc.TCustID)
Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim parent As NotesDocument
Dim uidoc As NotesUIDocument
Dim w As New NotesUIWorkspace
Set db = session.CurrentDatabase
Set uidoc = w.currentdocument
Set doc = uidoc.document
Set parent = db.GetDocumentByUNID(doc.TCustID)