Emmanuel Gleizer
Emmanuel Gleizer

Reputation: 2018

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

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 ?

Upvotes: 0

Views: 422

Answers (2)

Mario S
Mario S

Reputation: 1984

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

Upvotes: 0

Andre Guirard
Andre Guirard

Reputation: 720

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.

Upvotes: 2

Related Questions