Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 299
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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