What am I doing wrong here? This is a line from a server agent that I am testing & debugging, and I want it to use my local agent log for now. I tried specifying “local” and I tried “C:\Documents and Settings.…” I know I did this years ago but can’t remember the syntax and couldn’t find an example to kife. Any ideas thoroughly appreciated! --Trish
Call NLog.OpenNotesLog( “local”, “agentlog.nsf” )
Subject: LOTUSSCRIPT: OpenNotesLog - how to specify local path?
Have you tried doing it this way:Call currentLog.OpenNotesLog( “”, “agentlog.nsf” )
Passing empty string instead of “local”
Subject: RE: LOTUSSCRIPT: OpenNotesLog - how to specify local path?
Hi Rehan,
Yes, that is the way the code was originally. Since the code is running on a server, specifying empty quotes will find the agent log on the server. I want to force it to write to the agent log on my local.
I guess I can try making a local replica of the db I’m running the code on, then make sure I’m set to Island for my location before running it and see how that goes.
Thank you,
Trish
Subject: RE: LOTUSSCRIPT: OpenNotesLog - how to specify local path?
Tricia:
I don’t think you’ll be able to run the agent on the server and have it post locally. The agent on the server has no idea about your Notes client. I would use the OpenMailLog instead and have it send to your mailbox. Or of course, you can run the agent locally and then you’ll have no problem using your local NotesLog.
Subject: RE: LOTUSSCRIPT: OpenNotesLog - how to specify local path?
Thank you for the clarification, John. Yes, when I ran the agent on the local replica of that database, it wrote to my local notes log.
Trish