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

Updating documents on the Web

I have a question related to using Lotus Script in Domino Web programming. I made some agent script to update selected documents on the Web, but it does not work properly. Here is my script:

When should this agentrun =Manually from action menu which document should it act on =Selected Document Dim SS as New NotesSession
Dim DB as NotesDatabase
dim Doc as NotesDocument

Set DB=SS.CurrentDatabase
Set Collection=DB.unprocessedDocuments
Set Doc=Collection.getfirstDocument
Do until doc is nothing
doc.UpdateFlag="D"
Call Doc.save(true, false)
Set Doc=Collection.getnextDocument(Doc)
Loop

When I tested from Notes Client, it worked properly. I would appreciate it if you would help me understand this problem. I am new to Notes 5.0 and our company still uses Notes 4.5. Where can I learn about developing the Web using Lotus Notes?
This works in Notes because the client can understand which documents you have selected in a view. You don't have this context over the Web so you'll need to know which documents the user has selected by allowing them to click a checkbox or some other similar method. Then, when the user submits the forms, you can process all the documents that were checked. In newer versions of Notes, there is a view property, "Allow selection of documents" that can help with this. Additionally, consider using the StampAll method of NotesDocumentCollection, it?s much faster when updating a single field for all documents in a collection.

Dig Deeper on Domino Resources - Part 6

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.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

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

SearchDataCenter

SearchContentManagement

Close