I am looking for some advice on how I should implement webquerysave agents in xpages. I found some information on the querySaveDocument event, but I didn’t really find what I was looking for. The options that I think I have are…
Translate all existing lotusscript into serverside javascript
Translate all existing LS into java and call that java from SSJS
Set flags on the querySaveDocument or postSaveDocument event and pick the document up with a scheduled agent
Are there any that I am missing that are better, or is one of these two the winner? Maybe I need to start thinking about how logic in WQS agents can be implemented in a completely different way…
You can run Lotus Script Agents from Post Save but any Web Print Statements like “Agent Worked” or “Input Submitted” will not work from Lotus Script . This is another reason why you need to convert the Lotus Script Agent to SSJS. For testing though, leave the Lotus Script Agent as is and leave in the Print Statements. They will still show in the Miscellaneous of your your servers log.nsf. Also make sure you have an Errorhandlier and Print the Error and Error Line number just in case you need to see an error message in log.nsf also.
Another thing, IBM now has a WebQuerySaveAgent event in 9.01. When I spoke to IBM and they tried it the PostSave worked the new event didn’t. They didn’t know why???