Yesterday I had another problem with Lotus Notes.
I wanted to change "Runtime security level" of some Java agent I was developing. But the Security tab looked like on the picture above.
Google didn't help, but the solution was easy - simply save and close your agent and BEFORE you open the Java code of the agent, set your desired security options.
The problem is consistent - every time I open agent and then it's code, this happens. But if you work with Lotus Notes long enough, you are used to this, aren't you?
středa 12. října 2011
úterý 19. července 2011
Run program on server from Lotus Script
There is a special function in Lotus Script that allows you to start a program - function "Shell".
Shell ( program [ , windowStyle ] )
The function ends immediately after executing required program, NOT after the program ends.
However, if run it from Lotus Script agent, it executes on computer, where the agent is executed. So if you need to run something on server (where is the nsf file) you can use this technique:
1) Create agent that runs Shell function
2) Create other Lotus Script agent that runs nr. 1 agent as "agent.RunOnServer"
3) Set security level of agent 2 to level 2 (or 3 if 2 doesn't work)
Remember that the privileges you run the program on server are low - so no access to restricted directories, etc.
It is also good technique for running command line commands - simply write them in a bat file. You can run BAT, COM, PIF, or EXE files.
There is also function called "Shellid" that returns task ID of the started process.
Shell ( program [ , windowStyle ] )
The function ends immediately after executing required program, NOT after the program ends.
However, if run it from Lotus Script agent, it executes on computer, where the agent is executed. So if you need to run something on server (where is the nsf file) you can use this technique:
1) Create agent that runs Shell function
2) Create other Lotus Script agent that runs nr. 1 agent as "agent.RunOnServer"
3) Set security level of agent 2 to level 2 (or 3 if 2 doesn't work)
Remember that the privileges you run the program on server are low - so no access to restricted directories, etc.
It is also good technique for running command line commands - simply write them in a bat file. You can run BAT, COM, PIF, or EXE files.
There is also function called "Shellid" that returns task ID of the started process.
čtvrtek 26. května 2011
"Share memory from previous run" Lotus Notes error
Notes sometimes hangs even when I try to save something in Designer (today it was an agent).
After few minutes of waiting, I have killed all processes that looked like they have something in common with Lotus Notes.
But this crash was stranger than expected. After I tried to run Notes again, message appeared telling me something like "Share memory from previous run of Lotus Notes found, this process will stop".
So I killed that new process (it didn't look like it's going to quit) a tried to find something on google. I have found several solutions, but what worked for me, was this one (for Windows 7 x64):
1) Start command line with admin privileges (Start - write cmd, right click, "Run as administrator")
2) Go to folder where is Notes installed (usually "C:\Program Files (x86)\IBM\Lotus\Notes\Data")
3) Run "nsd.exe -kill"
Don't ask me what it does, but it worked for me and saved me (hopefully) one restart :).
And thanks to that guy who wrote that solution to some Internet discussion, yet I don't remember where I found it (and I don't want to look for it again).
After few minutes of waiting, I have killed all processes that looked like they have something in common with Lotus Notes.
But this crash was stranger than expected. After I tried to run Notes again, message appeared telling me something like "Share memory from previous run of Lotus Notes found, this process will stop".
So I killed that new process (it didn't look like it's going to quit) a tried to find something on google. I have found several solutions, but what worked for me, was this one (for Windows 7 x64):
1) Start command line with admin privileges (Start - write cmd, right click, "Run as administrator")
2) Go to folder where is Notes installed (usually "C:\Program Files (x86)\IBM\Lotus\Notes\Data")
3) Run "nsd.exe -kill"
Don't ask me what it does, but it worked for me and saved me (hopefully) one restart :).
And thanks to that guy who wrote that solution to some Internet discussion, yet I don't remember where I found it (and I don't want to look for it again).
čtvrtek 5. května 2011
"Not a sub or function name" error while using script library
Having troubles with "Not a sub or function name" error when trying to use your procedure even if you are sure that everything should be working?
I have recently suffered from another from many Lotus Notes errors. I created new sub in a script library and added library import in declaration section of action in which I wanted use my code.
But when I was trying to use my new procedure, LN was still showing the error.
Recompiling all scripts in database didn't help, google on my vile query also found nothing.
Long thing short, simply closing and reopening the form with action helped...
I have recently suffered from another from many Lotus Notes errors. I created new sub in a script library and added library import in declaration section of action in which I wanted use my code.
But when I was trying to use my new procedure, LN was still showing the error.
Recompiling all scripts in database didn't help, google on my vile query also found nothing.
Long thing short, simply closing and reopening the form with action helped...
Přihlásit se k odběru:
Komentáře (Atom)

