Q

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)
Loop

This was first 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.

0 comments

Oldest 

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:

SearchWinIT

Search400

  • 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 ...

SearchEnterpriseLinux

SearchVirtualDataCentre.co.uk

Close