PostOpen & PostSave R6.5

I have the situation where it appears that the PostOpen and PostSave events are not being reached. I have written cludge code that catches this.

Is there a setting that I have forgotten that controls this?

This is happening in legacy R5 databases that were behaving normally. I have no firm evidence, but things seem to be okay until the design element is touched with the R6.5 Designer.

Subject: RE: PostOpen & PostSave R6.5

I haven’t had or heard of any problem. Please use the Notes debugger to confirm whether the problem is events not executing as opposed to their erroring out. If you’ve already done this, sorry, but if you don’t say what you’ve tried, how are we to know?

It’s not clear whether the Notes clients you’re using are also version 6.5. There’s really no guarantee that design elements edited with a later version of Domino Designer will continue to work the way you expect in earlier versions of the Notes client.

Make sure your event code uses the Source function argument to get the current document, not wksp.CurrentDocument.

Subject: RE: PostOpen & PostSave R6.5

Hi Andre,

The company I am doing this work for are using R6.5: the first release, hence the lack of a further version identification. The server and all clients are R6.5 using the applications: I can recognise when an R5 client is accessing either application. In both cases these are legacy applications developed by another.

I used the LotusScript debugger to step through the code: the PostOpen and PostSave events are just skipped. I figured out that the setting of SaveOptions was killing the PostSave event. I am catching at the QueryClose event on the way out, based on a flag value not set.

In another application, I am not yet convinced why the PostOpen is being skipped and jumping straight to the QueryRecalc after QueryOpen: I suspect that the “Automatically refresh fields” being checked may be responsible. My quick fix has been to copy the PostOpen actions to a separate routine and call that if a specific object has not been instantiated as part of the QueryRecalc.

  • Robert.