Subject: RE: How to run an agent in another database
Hmmmmm…you have me very worried now, because I’m doing this, and I really don’t know anything about Lotus Notes. I just got drafted!
There is a local database called Audits, and a local database called questions. These reside on a Panasonic Toughbook. All day long, the auditor will perform audits on this tablet. What actually happens during this process, is that an agent is run from the Audits database on local, and it gets all sort of information from the Questions database, like employee names, audit questions, names of machines, etc.
At different points during the day, the auditor puts the tablet into the docking station, which connects the tablet to the company network.
What happens now, is that he hits a button, and all the audits that he did today are copied into a different database, also named Audits, on the server. Its pretty much the same architecture, except its only used for viewing, editing and approving edits, not for conducting them. After the audit documents are copied from the tablet to the network database, they are deleted from the tablet (this does not happen if the copy function fails), and then a sample audit document is created for the local Audits database on the tablet.
What I want to happen at the same time is for the local Questions database to be replaced by the network Questions database. The Questions database on the network has a lot of additional Java GUI agents for creating and editing the documents. These features are not on the tablet’s local Questions database, because we do not want the auditor to be able to change this core data. I need the documents from the network Questions to be copied to the local Questions so that if a manager makes a change, it will be reflected during the next auditing session.
I hope that this makes sense. Unfortunately, I’m at a point time wise where I can’t make too many changes. I just need to have this work. I looked into the runOnServer, and I know it sounds dumb, but I can’t figure out how to make it work. It just gives me a null pointer exception every time. Almost like it doesn’t see the server or something.
Thanks again for your help!