Link to home
Start Free TrialLog in
Avatar of apparition
apparition

asked on

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.
Avatar of p_partha
p_partha

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
Avatar of apparition

ASKER

Notes Client
ASKER CERTIFIED SOLUTION
Avatar of p_partha
p_partha

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
if you are not doing this action from the view, just use this code:

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

Partha
Thx for the points ;-)

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

Partha
got it
@Command([EditDocument];1;"<your docid>")
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?
I got what I needed thanks.