how to see document that

how can i see if document has been processed by an agent

eg. copy all document into new view if they have been processed by an agent

thanks
Karen

karen@vis.is
karen021897Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

karen021897Author Commented:
you may send me the code, please
0
karen021897Author Commented:
you may send me the code, please
0
karen021897Author Commented:
you may send me the code, please
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

jschwarzCommented:
There are really only two options.  The first is to mark the document from within the agent by setting a field (e.g., ProcessedByAgent := "Yes").  The other is to use the UnprocessedDocuments property of NotesSession, along with the UpdateProcessedDoc method.  I suggest you read about them.
0
karen021897Author Commented:
do you have any example
0
sk5tCommented:
You'll probably have best results by adding a hidden field to your documents, and updating it in the agent's code -- something like "FIELD LastProcessedOn := @Date(Today)" as part of the agent.  Then you can do whatever you like with this information in the views.

jschwarz is correct, that you can access some built-in properties through LotusScript, but this is perhaps more useful during complex agent execution.

Remember, documents are never "copied into a view."  Every database data document is "in" every view all the time, if it meets the selection criteria...
0
karen021897Author Commented:
i will be glad if you have the Lotus script example

Thanks
0
jschwarzCommented:
As sk5t mentioned, it will be easier to do using formula language, using the example he provided, than in LotusScript.  But, if you must have an outline of the LotusScript code, following is an example of the code you might use in a button:

dim doc as NotesDocument
dim item as NotesItem

set doc=Source.Document
set item=doc.ReplaceItemValue_("LastProcessedOn", Today)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
karen021897Author Commented:
Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.