Hi,
das war wohl noch nicht gelöst!
Bei UIDoc Close und refesh bin ich generell vorsichtig mit code danach, da die immer etwas "langsam" reagieren (queryclose ect)
Vielleicht ist mir desshalb das Problem noch nicht untergekommen.
also mal ein anderer Ansatz:
Dein Code
Set uidoc = uiiws.CurrentDocument
If Not (doc Is Nothing) Then
'// Set notesUIDocument = ws.EditDocument( False, doc)
Call uidoc.Close()
Call uiiws.DialogBox( "Maske", True, True, True, True, False, False, "TEST", doc, True,False,False)
wie wäre es das UIDoc nicht über uiiws.CurrentDocument
sonder hintenrumdurchdiebrustinsauge über
Set uidoc = WS.EditDocument( [editMode] , db.GetDocumentByUniD(uiiws.CurrentDocument.Document.Universalid), [notesDocumentReadOnly] , [documentAnchor$] , [returnNotesUIDocument] , [newInstance]=FALSE )
zu öffnen und dann
Call uidoc.Close()
Grund: dann braucht notes eben auchnoch den Moment es zu "öffnen" und verliert es nicht so schnell....
Oder ist das uiiws.CurrentDocument eine Dokument in der "ersten Dialogbox"?
Gruss, Pete(r)