?
Solved

EditDocument  on NotesDocument

Posted on 1999-11-02
2
Medium Priority
?
1,752 Views
Last Modified: 2013-12-18
Hi!

I'm new to Notes, and have recently come upon a very stubborn problem:

I want to find a specific NotesDocument in the database (I do this via LotusScript in an Action-button - no problem there) and then let the user edit this document DIRECTLY. -Like I can do with the selected document in a view, by the Formula @Command([EditDocument])...

How to?!
Is this not a normal thing to do?!

Regards
/Torbjörn Josefsson
0
Comment
Question by:toblo
2 Comments
 
LVL 2

Accepted Solution

by:
Paebdb earned 300 total points
ID: 2176771
Use the EditDocument method of UIWorkspace:

Sub Click(Source As Button)
  Dim workspace As New NotesUIWorkspace
  Dim uidoc As NotesUIDocument
  Set uidoc = workspace.EditDocument( True )
  Call uidoc.GotoField( "Body" )
End Sub
0
 

Author Comment

by:toblo
ID: 2176987
Thanks!

To be specific, I did like this:

Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim dc As NotesDocumentCollection
Dim doc As NotesDocument
Set db = session.CurrentDatabase
Set view = db.GetView( "MyView" )
      
Set dc = view.GetAllDocumentsByKey("the searchstring", False)
      
Dim workspace As New NotesUIWorkspace
      
Set doc = dc.GetFirstDocument

Dim uidoc As NotesUIDocument      

'HERE is where I decide what document to display!
Set uidoc = workspace.EditDocument( True , doc)
'To get focus..
Call uidoc.GotoField("XLNamn")
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
The video will let you know the exact process to import OST/PST files to the cloud based Office 365 mailboxes. Using Kernel Import PST to Office 365 tool, one can quickly import numerous OST/PST files to Office 365. Besides this, the tool also comes…
Suggested Courses

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question