I am looking to have an application (.NSF) that will have a number of DialogBox’s. They will contain forms with embedded views, outlines, etc.However I want to open these dialog’s from scripts in any number of other databases (or externally from API). I have not had much luck, would appreciate any help. Could the “form” parameter in the DialogBox method be qualified with a database?
I did try an agent in the new app database that did a “Call ws.DialogBox(…” and I called it with agent.run() from another DB. This only works if the agent does a “Call ws.OpenDatabase(…” first. It is ok to open the DB in the workspace if it isn’t already, however it seems to open multiple instances of it with subsequent calls regardless of the parameters I use.
Thanks, Tony
Subject: RE: Open DialogBox with form in another database
Haven’t tried this recently, but I believe that if you use LotusScript and supply a NotesDocument argument, DialogBox will use the forms in the database containing the NotesDocument, if that is different from the current database.
Subject: Open DialogBox with form in another database
The plural of dialog is dialogs. Dialog’s is a possessive pronoun.
You can do this. Specify thedocument.getfirstitem(“Form”).text as the Form argument.
Subject: RE: Open DialogBox with form in another database
Thanks for the quick reply, and pardon my ignorance of the LotusScript and English languages
I was going to say I couldn’t do this because there is no “document”. The form is just for capturing user selections from an embedded view or outline, checkboxes, etc. for subsequent processing. There is nothing persisted to the DB from it. However I tried creating a new document object in that database (w/o saving), doing “doc.Form = …” and then the ws.DialogBox and it works.
Thank you very much!
Tony