?
Solved

How do I process all the selected documents in a view in LotusScript

Posted on 2004-04-05
7
Medium Priority
?
330 Views
Last Modified: 2013-12-18
Help, I am trying to right a LotusScript subroutine that will process all the documents the user has selected in the current view.  I tried using the "UnprocessedDocuments" collection but it doesn't seem to reliably work, it points to the wrong documents if you don't select anything rather than just doing nothing.
0
Comment
Question by:Alford-Miller
7 Comments
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 10760920
For that one to work.. you have to Create agent with option to run on Selected Documents

Then you use UnprocessedDocuments in conjunction with this agent. Now you will have visibility of the selected docs

~Hemanth
0
 
LVL 14

Expert Comment

by:p_partha
ID: 10761290
unprocessedocuments behave differnetly in differnt scenarios
if run once @commands is used, it will always return one, so as hemanth pointed out, u might have to change the agent to run on selected documents

Let us know how u are executing the code

Partha
0
 

Author Comment

by:Alford-Miller
ID: 10762479
I am sorry I wasn't clear enough on my question.  The LotusScript code is being stored in a Script Library and being called as a Action directly on specified Folders, not as an Agent.  Currently I'm testing the code on my Inbox Folder partly for testing and partly because when I used the code directly from the View it did not show in my Action Menu.  is there any way to get this to work from the Action Menu?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 19

Expert Comment

by:madheeswar
ID: 10762931
can u paste the code here which ur using in Script libraries? I think there should not be any problem

I suspect it is ur script which is causing problem.

Paste the code and let us see what is wrong inside it,
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 10765149
You need to call your script from an agent that is set to "run on selected documents".
Then call this agent from your view and that's it. Should work as designed :-)

See also comments by hemantha and partha...
0
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 2000 total points
ID: 10765694
ScriptLibrary code can process selected documents and return them accurately when used only in agent.. not in Action.

For the action, either choose simple action to run this agent, or the command @Command([ToolsRunMacro]; "Agent Name" )

0
 

Author Comment

by:Alford-Miller
ID: 10768661
Thank you for all your help.  Ultimatley I made 2 functions in my Script Library, 1 for a single document which I called from and action and the other for multiple documents which I called from an Agent.  
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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
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.
Loops Section Overview
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

850 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