By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
example, from customer activity we want to open customer file. We use a button
with following script :
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim doc As NotesDocument
Dim txtvalue As String
REM "Read Unique Code of a document which we want to open from actual
REM "Select the document which we want to open from the view sorted by
Set view=db.GetView ("View_By_Unique_Code")
Set doc=view.GetDocumentByKey (txtvalue)
REM "Open the document in read mode, for edit mode use TRUE"
You need a field with unique code which identify the document you want to open
and then you need the view (hidden) with all documents sorted by the unique
code. The documents can be located in different databases. Then you have to
change db object deffinition.