What could prevent PostOpen code to run when openin with @dialogbox?

415 views Asked by At

What could prevent PostOpen code to run, when the form is opened with @dialogbox ?

Users using the Basic version of Notes 8.5.1 get the code running, I got 2 computers with Release 8.5.1 Standard version (also 8.5.3) don't.

I got a form with

Sub Postopen(Source As Notesuidocument)
    Msgbox "hello postopen"
End Sub

In an other form I have a @formula hotspot

@DialogBox( "dlgForm" ; [NoNewFields] :[AutoHorzFit] : [SizeToTable] ; "some text" )

Except this i didn't notice anything strange on the two computers that don't run postopen.

If no reason exists, what do you suggest? Removing bookmark (no success), resetting Notes.ini, reinstall Notes ?

2

There are 2 answers

2
Andre Guirard On BEST ANSWER

SPR# TGUZ8N6L54 V90: Events of a form shown in a dialogbox in Notes Client don't fire if Designer Client is open. Msgbox from a dialogbox should not be a problem -- that's not the issue.

2
Mario S On

So far I know, the event PostOpen always run even if you are opening the form as a dialog box. Maybe, if you want to test it, instead use MsgBox, use:

Sub Postopen(Source As Notesuidocument)
    Print "Here's PostOpen!"
End Sub

The text will be on the status bar

enter image description here