Domino 9 und frühere Versionen > ND6: Entwicklung

Doppelklick auf Dokument startet @Formular oder Script

<< < (2/4) > >>

Alexis:
Hallo,

Nachfrage: Warum bekommen ich beim folgenden Script die Fehlermeldung "Not a member" für den View-Aufruf?

Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
   Dim ws As NotesUIWorkspace
   Dim uidb As NotesDatabase   
   Set uidb = ws.currentDatabase
   Set ws = notesUIWorkspace.CurrentDatabase
   Call ws.OpenFrameSet( "MainFrameset" )
   Call ws.SetTargetFrame( "SubTopMenu" )
   Call ws.OpenPage( "Überschrift" )
   Call ws.SetTargetFrame( "ApplicationContent")
   Call uidb.OpenView( "Zielverfolgung",,True)   
End Sub

Alexis

koehlerbv:
Es müsste heissen:
Dim uidb As NotesUIDatabase

OpenView ist keine Methode der von Dir deklarierten NotesDatabase class.

Bernhard

Alexis:
Hallo Berhard,

sorry, mein Lapsus.

Nun bekomme ich "Object variable not set" ???

Alexis

koehlerbv:
Dann sind ja noch mehr Fehler drin, wie ich gerade sehe.

Es muss heissen:
Dim ws As New NotesUIWorkspace
Dim uidb as NotesUIDatabase
Set uidb = ws.CurrentDatabase

Bernhard

Alexis:
Hallo Forum,

OpenFrameSet ist nicht erlaubt im QueryOpen. Damit geht dieser Ansatz nicht.

Alexis

Navigation

[0] Themen-Index

[#] Nächste Seite

[*] Vorherige Sete

Zur normalen Ansicht wechseln