Developing agents
As you look at existing scripts or begin to code your own, keep in mind the general suggestions highlighted in this section. These strategies apply to most agents. If an existing agent does not include a basic error trap, for instance, then you should consider putting one in when you work on the agent.
Use web safe @formulas and LotusScript
As you look to write a new agent or to web-enable an existing Notes application, keep in mind that certain LotusScript classes, properties, and methods do not work in server agents invoked from web applications. Check Designer Help for specifics.
For example, background agents written in LotusScript cannot use the UI classes, so an agent that tries to use such a class fails when invoked from the Web.
Dim workspace As New NotesUIWorkspace Call workspace.OpenPage("Page2")
Rewrite such agents. Here is one way to achieve the same result:
Dim session As New NotesSession Dim db As NotesDatabase Set db = session.CurrentDatabase url$ = "[/"+db...