Solved

Open Document in Edit Mode

Posted on 2004-03-31
10
291 Views
Last Modified: 2013-12-18
I want a nav button, that when clicked will bring up a specific document in edit mode.
I know the document's DocumentUniqueID. What code do I put in the button to make this
happen ?

Thanks for your help.
0
Comment
Question by:apparition
  • 6
  • 4
10 Comments
 
LVL 14

Expert Comment

by:p_partha
ID: 10726178
is it in web or notes client?

in web means, just have this code as the javascript:

location.href  = location.href.split(".nsf")[0] + ".nsf" +"/0/" + document.forms[0].<documentidfieldname>.value +"?editdocument"


Partha
0
 
LVL 5

Author Comment

by:apparition
ID: 10726184
Notes Client
0
 
LVL 14

Accepted Solution

by:
p_partha earned 50 total points
ID: 10726191
in client means u can use this formula

@Command( [OpenDocument] ; writeOrReadOnly ; UNID ; width : height)  


Partha
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 14

Expert Comment

by:p_partha
ID: 10726283
if you are not doing this action from the view, just use this code:

@Command([OpenView];"<your viewname>");
@Command([OpenDocument];1;"<your docid>")

Partha
0
 
LVL 14

Expert Comment

by:p_partha
ID: 10727947
Thx for the points ;-)

Partha
0
 
LVL 5

Author Comment

by:apparition
ID: 10727959
the above code does not open the document in edit mode
0
 
LVL 14

Expert Comment

by:p_partha
ID: 10727965
opendocument will work when you are in view, i am not sure what didn't work for u?

Partha
0
 
LVL 5

Author Comment

by:apparition
ID: 10727967
got it
@Command([EditDocument];1;"<your docid>")
0
 
LVL 14

Expert Comment

by:p_partha
ID: 10727976
As far as i know, there is no parameter in editdocument to take docid, the third parameter is just to show itin preview pane or not,edit document just puts the current document in edit mode, ur question was how to put a specific document (may be the current document but not necessarily) to put in edit mode?
0
 
LVL 5

Author Comment

by:apparition
ID: 10728130
I got what I needed thanks.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

860 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