Classic Notes Development; How to launch a database in Designer with Command Line Parameters
Ever wanted to launch a database directly in Designer? Yes, then you probably are a developer
Read more to see a snippet of LotusScript code on how to launch the Designer with a specified database.
BTW – wish I could specify a specific designer element, so if you know, please chime in.
The following code assume that you have placed the code in an action button in a view, and that you have selected a document with the fields txtServer and txtFilePath available. You can of course replace this with whatever you want.
The code first get the NotesProgram-keyword from Notes.ini, and based on that, boldly assumes that you have designer.exe in the same directory. This means that the code won’t work if;
a) It can’t find NotesProgram keyword in Notes.ini
b) You don’t have “designer.exe” in the program directory. This means that you’d probably need some version of Lotus Notes 8 in order to get this to work.
Note that all hope isn’t gone for elder versions of designer. Remember you can always start notes.exe with the command line parameter /DESIGN too. This have however not been tested.