Ask the Expert

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 -
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 first published in May 2002

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
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
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: