Solved

Open Document in Edit Mode

Posted on 2004-03-31
10
287 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
 
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now