Problem solve Get help with specific problems with your technologies, process and projects.

Displaying info. in the order it appeared in the view

When getting unprocessed records in the agent, I am selecting "Selected Documents" to process a view. Then one by one on display that item appears in a pop up window. I need to have them in numeric order, like they where selected. Any suggestions?
I created the following simple LotusScript agent to test this. And in my testing, every time I ran the agent, the message box displayed the information from the selected documents in the order they appeared in the view? I have been unable to reproduce this problem.

' Last mods 020518. 103401 - dhatter@libertastechnologies.com -www.libertastechnologies.com
Dim nsCurrent As New NotesSession
Dim ndbCurrent As NotesDatabase
Dim ndcSelected As NotesDocumentCollection
Dim ndocSelected As NotesDocument
Set ndbCurrent=nsCurrent.CurrentDatabase
Set ndcSelected=ndbCurrent.UnprocessedDocuments
Set ndocSelected=ndcSelected.getFirstDocument
Do While Not ndocSelected Is Nothing
	Msgbox ndocSelected.tLink(0)
	Set ndocSelected=ndcSelected.getNextDocument(ndocSelected)

This was last published in May 2002

Dig Deeper on LotusScript

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.




  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...