Domino 9 und frühere Versionen > Administration & Userprobleme
Dokument über Button in Seite öffnen
lenchen2:
Gut - dann bin ich wenigstens nicht schuld:-)
Aber hab jetzt mal den Button in den Main-Frame rein gestellt, da kommt die gleiche Fehlermeldung...
Gibt's nen andern Weg um das Dokument im Mainfraim zu öffnen? Oder es kann auch ein neues Fenster aufgehen in dem sich das Dokument öffnet. Will doch nur, dass die User das Dokument sehen können.
Lenchen2
Glombi:
Call ws.EditDocument(Doc)
wird nicht funktionieren, da Notes als 1. Parameter einen Integer (true/false) erwartet. Also so
Call ws.EditDocument(true, Doc) 'im Bearbeitenmodus öffnen
bzw.
Call ws.EditDocument(false, Doc) 'im Lesemodus öffnen
Damit eine Maske in einen bestimmten Rahmen geöffnet wird, kannst Du dieses in den Maskeneigenschaften einstellen (Auto Frame). Das würde ich auch mal probieren.
Folgendes ist auch noch zu berücksichtigen:
This method raises the error lsERR_LSXU13_ANCESTOR_TARGET_FRAME (4426) if it attempts to return a NotesUIDocument object for a target frame that is the ancestor of the frame containing the code. You can suppress returning the object by specifying returnNotesUIDocument as False. The document opens in the target frame but you do not have access to its NotesUIDocument object. Calling this method as a subroutine does not suppress returning the object; you must specify returnNotesUIDocument as False.
Set notesUIDocument = notesUIWorkspace.EditDocument( [editMode] , [notesDocument] , [notesDocumentReadOnly] , [documentAnchor$] , [returnNotesUIDocument] , [newInstance] )
returnNotesUIDocument
Boolean. Optional. If True (default), attempts to return the NotesUIDocument object; if False, does not attempt to return the object. See the usage note on lsERR_LSXU13_ANCESTOR_TARGET_FRAME.
Hinweis This parameter is new with Release 5.0.6.
Andreas
lenchen2:
Danke Glombi!!!!:-)
Wegen so einem kleinen "True" bin ich fast verzweifelt und jetzt funktioniert's!!!
Hab nur das True ergänzt und dann hat das mit dem Frame auch gepasst.
Lenchen2
Navigation
[0] Themen-Index
[*] Vorherige Sete
Zur normalen Ansicht wechseln