I am posting this as a bug.
I have a form which has a Formula in the PostOpen. It also has 2 subforms, which have LotusScript in the post open.
I was getting an subscript out of range error when opening some documents in edit mode, so needed to debug.
I put messagebox prompts in all queryopen, postopen, querymodechange and postmodechange events. In the one with the formula language, I used an @prompt (OK).
If opening a document from the view, all events are triggered:
form queryopen
SF1 queryopen
SF2 queryopen
form postopen (which is an @prompt)
SF1 postopen
SF2 postopen
But if I then hit ENTER to open up the next document in the view, none of the postOpen events are being triggered. I just get:
form queryopen
SF1 queryopen
SF2 queryopen
This only happens if the formula is in the form’s postopen, not the subforms’. For instance, I switched it around so that the form has all LS, and the subform1 has the formula in the postOpen. This did not create any problems.
I have the formula because I want to run an agent if it is a new document.
Looks like I will have to create another subform so that I can move that code to its postOpen rather than the form’s. Thanks.