DialogBox within a script library

Hi,

from an action button of a form in view mode I’m opening the current document in edit mode in a dialog box using LotusScript. Nothing special hapens and everything is functioning well.

Then - for better maintenance - I created a script library with a function using the same code to open the dialog box and called this function from my action button. Then I got “Dialog Box cannot be used in this context; a document must be selected” at the DialogBox line. I’m really confused. What’s the problem here?

A.

Subject: DialogBox within a script library

Drop the code then I will check it.

Subject: RE: DialogBox within a script library

I’m sorry, I can’t. Yesterdqay I’ve been very angry and deleted the script library. Now I can not reproduce the error. Everthing is workung fine now.

A.

Subject: DialogBox within a script library

got just bitten by a similar problem.

I’ve got a form “(dlg)” that I was using to display the box. However the form name I used in code was “dlg”. It seems that at some point Notes ignored this difference and displayed the dialogue as expected, then again it failed to find the form, and produced this inappropriate message. Adding “dlg” as an alias for my form, solved the issue (Notes 6.5.4)