Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 301
  • Last Modified:

Open Document in Edit Mode

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
apparition
Asked:
apparition
  • 6
  • 4
1 Solution
 
p_parthaCommented:
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
 
apparitionAuthor Commented:
Notes Client
0
 
p_parthaCommented:
in client means u can use this formula

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


Partha
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

 
p_parthaCommented:
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
 
p_parthaCommented:
Thx for the points ;-)

Partha
0
 
apparitionAuthor Commented:
the above code does not open the document in edit mode
0
 
p_parthaCommented:
opendocument will work when you are in view, i am not sure what didn't work for u?

Partha
0
 
apparitionAuthor Commented:
got it
@Command([EditDocument];1;"<your docid>")
0
 
p_parthaCommented:
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
 
apparitionAuthor Commented:
I got what I needed thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now