LotusScript QuerySave Event don't work for user but work for me

Hi,

I have a very basic LotusScript code that put some stuff in a log field of a form when this one is saved. This code is in the QuerySave event.

I have a very strange problem, when I do a document, the code is executing and the field is filled by log stuff. But when users doing work and save their documents, the field still empty, like if the script is not executed. But they don’t have any error message.

If I add this script on form and there are already documents done with this form, the code will be executed next time they saved it right?

Someone have a clue?

Thx.

Sebastien Gignac

sgignac@novatechglass.com

Subject: RE: LotusScript QuerySave Event don’t work for user but work for me.

Yes, Querysave code will be effective when users edit existing documents – provided the documents really use that same form name, and provided the form isn’t stored in the documents. It appears you need to do some testing using an ID other than your own – there might be some access issues.

Subject: RE: LotusScript QuerySave Event don’t work for user but work for me.

Sebastien,

Have you put a Print/Msgbox command in to make sure that the script is running (it might be running but not doing what you want). This message will at least let you know if the QuesrySave event is actually starting.

Does the user save the document differently to you in any way? Any script/@functions behind the Save button, or do they just press Esc/click the x and close??

Mike

Subject: RE: LotusScript QuerySave Event don’t work for user but work for me.

There is no msgbox in the event, there are 250 peoples using this database so I don’t want to receive 200 phone calls for a msgbox! But it is really simple. I will try do the test with another userID than mine and put some message box to be sure that th script is executed.

Thx.

Subject: RE: LotusScript QuerySave Event don’t work for user but work for me.

It really makes senst to do this kind of testing in a copy of the database that only you can access with different test IDs, rather than be editing the design while hundreds of people are using it.

Subject: RE: LotusScript QuerySave Event don’t work for user but work for me.

Use the Print function instead of the MsgBox!!