Das Notes Forum
Domino 9 und frühere Versionen => Entwicklung => Thema gestartet von: Tandorf am 29.08.02 - 08:42:54
-
Moin!
Ist es irgendwie möglich, in einem View ein Dokument per Doppelklick zu öffnen, so daß es aber in einer DIALOGBOX startet? Hab´s im "Queryopendocument" probiert: "incorrect argument type, obj. expected" - Box,
danach ging dann dat Ding auf, aber NICHT in einer Dialog-Box. Folgend der Quelltext:
Dim ws As New notesuiworkspace
Dim session As New notessession
Dim db As notesdatabase
Set db = session.currentdatabase
Dim AktDok As notesdocument
Set AktDok = session.documentcontext
Dim DialogBoxVar As Integer
DialogBoxVar = ws.dialogbox_("Eigenschaft",True,True,True,False,False,False,"Eigenschaft",AktDok,True,True)
-
Hallo,
mit session.DocumentContext kannst Du nichts anfangen.
Mach es doch so:
Dim ws As New notesuiworkspace
Dim session As New notessession
Dim db As notesdatabase
Set db = session.currentdatabase
Dim AktDok As notesdocument
Dim Col As NotesDocumentCollection
Set col = Source.Documents
Set AktDok = col.GetFirstDocument
Dim DialogBoxVar As Integer
DialogBoxVar = ws.dialogbox(AktDok.Form(0),True,True,True,False,False,False,"Eigenschaf t",AktDok,True,True)
Continue=False
-
Vielen Dank!
So ist´s eine sehr geile (und elegante) Vorgehensweise!
Tschö,
TANDORF.
-
hi ihr beiden,
wenn ich nun ein doc öffne, wird es wie immer, normal in der Form geöffnet?!
Ist schon komisch, dass das bei mir nicht klappt? :-/
-
Hi,
arbeitest Du mir einer R5 Version? Oder fehlt die letzte Zeile continue = false ?
-
Hi,
ich arbeite mit R5 und habe nicht die letzte Zeile vergessen. Ist jetzt aber auch egal, denn mich hatte das Script nur interessiert! Trotzdem danke.
MfG