[Webinar] Streamline your web hosting managementRegister Today

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

get a handle to a document

I have a view contains documents.
I want to get a handle to the current selected document in this view (the document in which the cursor is on it - without opening the document).
How do I do that (in Lotus/Java script)?
0
twg
Asked:
twg
  • 2
  • 2
  • 2
1 Solution
 
ArunkumarCommented:
Hi twg !

Use a view action button / Agent that runs on selected documents.

Use UnprocessedDocuments property to get the handle to the current document in the view.

Pl see "UnprocessedDocuments property" in the help database for more details of unprocesseddocuments.

Good Luck !

:)
Arun
0
 
twgAuthor Commented:
Hi Arun!
thanks alot for your answer.
The thing is that an agent that works on a selected document doesn't work on the Web and I need something that works
on Lotus and on the Web too.
Please answer my comment.
0
 
ArunkumarCommented:
Well,  How do you select a document over the WEB ?  In notes you can make a check mark at the view selection margin.

ON WEB HOW DO YOU DO THAT ?

Can you give more details ?

-Arun
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.

 
ghassan99Commented:
yes u can do that through JavaScript, but only in R5, using the view applet.
0
 
twgAuthor Commented:
Hi and thanks for your answers.

For Arun - I need exactly what you told me in the first answer but I need it to work on the Web (So how do I do that, maybe with JavaScript?)

For ghassan99 - can you please give me more details and an example of that?
0
 
ghassan99Commented:
To access the view applet u have to use their APIs.
Those APIs can be manipulated through JavaScript.  Take note that these are
not found in the help coz Lotus is changing them constantly...like, for example, in the new upgrade
5.0.1, u have the ability to open the document clicked in another frame.

All the API's for the view applet are found here:
http://waterworks.lotus.com/wwbpp/katlc2.nsf/Javascriptview/JS027CB49509492BC3EBD852566F8005E1C95?opendocument

An example in here:
http://waterworks.lotus.com/wwbpp/katlc2.nsf/Javascriptview/JS0266AB9DBFAA0EF29A8852566F50080A782?opendocument
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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