By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
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.