Dialogbox and Lotusscript

Just starting db testing for upgrade to 8.5.1 from 7.0.2.

I have forms called from the uiworkspace.dialogbox method that fail to execute any Lotusscript code. I created a new simple db as a test with one form that has an action button that calls another form via:

Call workspace.DialogBox(“Testdialog”)

I have msgbox statements all over the Testdialog form - in Onload, Onunload, PostOpen, QuerySave, QueryClose, and on the Exiting Event of one of the fields. None of these message boxes are executed.

I saw a post on the Notes 8 forum stating the same problem, but someone said it was working in 8.0.2.

http://www-10.lotus.com/ldd/nd8forum.nsf/5f27803bba85d8e285256bf10054620d/c2ea48c8c581d5a1852574f600333432?OpenDocument&Highlight=0,dialogbox

Can anyone get this to work in 8.5.1?

Thanks for the help.

Subject: Works for me

I use this form of Dialogbox. ivrform is a variable because we have two forms…depending on the time of day.

nuiws.DialogBox( ivrform , True , True , True , False , False , False , “IVR Update Authorization” , tempdoc , True , True , True )

My users are still on 6.51, but I have an 8.5.1 client where I’ve tested the application. This works just fine. And I have some dialogs with sizable postopen and queryclose events.

Subject: Worked on different PC

Thanks. I just tested installing 8.5.1 on a different computer and it does work ok there. I do have Notes 7.0.2 on my PC as well, so perhaps that has something to do with the problem. I’ll test further on my PC after doing a clean install.

Thanks for the response.

Subject: Now not working

Now today it’s not working on the different PC that was working the other day. Grrr…

Subject: Happens when Designer launched first

It seems this problem occurs when Domino Designer is launched first. Then, if I open the application in the Notes Client, the lotusscript in the dialogbox doesn’t run. At least I know how to get around it now.

Subject: Re: Happens when Designer launched first

Any idea why this is the case and if it only happens for DialogBox. As a developer I work in Designer most of the time and switch to the Client for email and testing.

Still I’ll know in future to test on a different machine. Good practice anyway I suppose.

Subject: it does not work in some forms ! BUG !?

regardless of what client is launched first.I have used it in another db and it works fine.

In the db. I currently work on, just DOES NOT WORK - it is a simple action button whcih calls this function.

The followiong message pops up :

“DialogBox cannot be used in this context; a document must be selected”

which does not make any sense as I do pass a document object which is valid.

I even tried without the document object (it should use the currently opened doc) but this time it fails with the message:

“Incorrect argument type: object expected”

This is basics so it should always work.

Lotus is there any workaround until this is fixed ?

Subject: Sounds like a different problem

You’re getting an error message that I did not receive. My program just didn’t run any of the Lotusscript - no errors. Maybe start a separate thread and post your code for others to review.