LotusScript to Recompile LotusScript in a Database

Michael Williams
Michael Williams used Ask the Experts™
on
Is there a way to Recompile LotusScript in a Database via LotusScript?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Sjef BosmanGroupware Consultant

Commented:
Why would you want to do that? Or do you also modify your design through LotusScript? AFAIK there is no direct way to recompile LotusScript, and I don't even know if the server has a compiler, assuming that you want a background agent to recompile everything.

You could try in a foreground agent, using the keyboard library, sending keystrokes to Notes.
You could also try to find something in the C API...
Michael WilliamsApplication Developer

Author

Commented:
I wanted to see if it's possible because we have an elevation process for 11 databases. A part of this process is to recompile all LotusScript. Right now it is manual. Wanted to see if this was one of the steps I could put a part of a single action that will be performing a number of the current manual steps.
Sjef BosmanGroupware Consultant

Commented:
Ah, got it. It might not be impossible to do it using keyboard strokes. See https://www.openntf.org/main.nsf/project.xsp?r=project/LotusScript%20Gold%20Collection and then the SendKey.lss library.

And how about the TeamStudio suite?
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

Michael WilliamsApplication Developer

Author

Commented:
We have CIAO, Configurator and Delta however I do not believe we are going to purchase any additional licenses. I believe Build Manager has a feature to recompile LotusScript.

I will look at the Link you sent.
Application Developer
Commented:
I found the following Code and it appears to be working. It calls NSFNoteLSCompile to recompile LS of a specific Design Note.

http://www.nsftools.com/tips/LSRecompile.lss
Michael WilliamsApplication Developer

Author

Commented:
Link provided has sample code from Julian Robichaux.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial