I have an action button in a view that calls a dialogbox…
I use the
flag = notesUIWorkspace.DialogBox( form$ , [autoHorzFit] , [autoVertFit] , [noCancel] , [noNewFields] , [noFieldUpdate] , [readOnly] , [title$] , [notesDocument] , [sizeToTable] , [noOkCancel] , [okCancelAtBottom] )
I create a tempDoc and use for the parameter [notesDocument] when I call the Dialogbox…
I wanted to put validation code in the Queryclose event of the dialogbox but of course I wanted to check first to see if the user had clicked the cancel button on the dialogbox by checking the dialogboxcancel property.
For some reason the source.dialogboxcancel property is being ignored in the query close… And my validation is being called and it won’t let me close the dialogbox w/out selecting values for the fields in the dialogbox.
Does it matter where you call the dialogbox from for the dialogboxcancel property to work…
Here is my code for the queryclose event…
If Source.DialogBoxCanceled Then
Continue = False
End If
If Source.Document.OldTextReaders(0) = “” Then
Messagebox “Please select the Change from value.”,16,“Required Field Selection”
Continue = False
End If
If I hit the cancel key, it still keeps checking to see if the OldTextReaders field has a value in it…
Any ideas on what I’m doing wrong?