Solved

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

Posted on 2004-04-05
7
321 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
LOtus Notes 6.5 low performance 13 36
Lotus Notes and SQL Server 2008, ODBC 22 1,320
How many GB is a good number to keep these databases? 6 174
Add code to Lotus Notes view column 2 116
I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

895 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

13 Experts available now in Live!

Get 1:1 Help Now