Hi all,I’m pretty new to Domino - so please forgive my innocent stupidity!
I’ve created a blank agent within an approval cycle database using the old Approve4.ntf. What I need to do, is to create other functions within the agent - ie. MyFunction1 etc that I can call from outside it.
After choosing the language as LotusScript, there are a few standard functions - Initialize, (Declarations), etc. I want another function of my own in this list.
Any help from the experts is greatly appreciated.
Kind regards,
Dave.
Subject: New Function in an Agent
Common code belongs in a script library rather than in an agent. In any agent/action that needs to reference the library, use a “Use” statement in the Options section.
Subject: how to…
After the “End Sub” of one of the existing functions, enter function “your function name” and hit enter.
this will create the function for you…
But as Stan mentioned, if you are going to re-use your code in other places, use libraries instead.
Subject: New Function in an Agent
the way I do it is like this :1) I select, for example, the initialize or terminate
- in the editor part i replace the “initialize” with “myFunction”