The first step to updating or fixing a document is to set the "Run on Behalf of" value to an ID with sufficient access to the system. For example, our company uses a generic ID to sign our Lotus Notes Domino databases, which saves us from changing the "Run on Behalf of" value every time we make an agent change.
The next step is to run the following agent, which operates on a schedule from the development server.
(Click on code for enlarged view and script download.)
This agent is a single-value replace. It could, however, include a function -- which you'll find below -- that lets you replace an element of a string or expand the replace, which details it with multiple value fields.
(Click on code for enlarged view and script download.)
Do you have comments on this tip? Let us know.
This tip was submitted to the SearchDomino.com tip library by member Jeremy Collett. Please let others know how useful it is via the rating scale below. Do you have a useful Lotus Notes, Domino, Workplace or WebSphere tip or code snippet to share? Submit it to our monthly tip contest and you could win a prize.
This was first published in September 2008