I was wondering if anyone knew of a way to enter LotusScript into a form field, save it, and then access it later via an agent or other process.
A better example would be that any user could key in LotusScript into an administrative form on Notes, then different proccesses could access this script, though the user shouldn’t need access to Designer.
Subject: Run editable field text as LotusScript
LotusScript is compiled within the application itself. I’m not aware of any effective means of calling it externally. Beyond that, how could you be certain that the code would conform to LotusScript’s syntax and to the Notes/Domino object model? Seems like a fairly risky approach to me.
Javascript, on the other hand, is designed for just this thing. Depending on what you want to do, you could instead write the script in a .js file and then refer to that when you open the object from a Notes client - the caveat being that many Notes client objects are not available to Javascript.
Subject: I do that all the time. Look at the “Execute” function in LS.
Compiles and executes a text expression as a temporary module.Statement Syntax
Execute text
Function Syntax
Execute ( text )
Elements
text
A string expression specifying the text to be compiled and executed.
Return value
The Execute function returns one of the following values:
The return code of an End statement, if one was executed.
Zero (0), if no End statement was executed, or if the executed End statement had no return value.
Subject: RE: I do that all the time. Look at the “Execute” function in LS.
wow…I did not know that was there!
Subject: RE: I do that all the time. Look at the “Execute” function in LS.
Thanks! I don’t beleive I couldn’t find that.