Hello all,
I have a button on a form that uses formula language. When pressed amoung other things I need it to create a form and populate the form with information, then save it. This needs to all occur in the background. I don’t want the user to see any of this.
Can this be done using formula language?
Subject: Unseen formula language
No. To create a form you have to use Lotusscript and the XML classes. And of course the person runnng the code has to have Designer access.
If you mean the button should compose a document, then yes you can do that with formula:
-
Use @Command([Compose];“formname”) to open the new document.
-
Use @UpdateFormulaContext to continue executing the formula in the new document. The subsequent lines of script will execute not in the button but in the new document, so you can call @Command([FileSave]), @Command([FileCloseWindow]) and so on.
The user will see all of this happening of course. If you really need this to happen in the background then you must use Lotusscript.
Subject: RE: Unseen formula language
thanks guys,
this information was quite helpful. I am working on a pre-existing application, and since I don’t fully understand what the previous developer was doing I didn’t want to dispose of his formula language and attempt to recreate it in script.
I have however learned that I can call an agent from within the formula language. I believe this along with a few set environmental variables will resolve my problem nicely.
Thanks again for all the good spot on advice.
Subject: Unseen formula language
Hi Andre,
You can not accomplish this using Formula language. Formula language is for UI type functions. If you want to work on the backend then you will need to use Lotus Script.
HTH.
Mark