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.
LVL 5
apparitionAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
p_parthaConnect With a Mentor Commented:
in client means u can use this formula

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


Partha
0
 
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
[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

 
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
All Courses

From novice to tech pro — start learning today.