Domino 9 und frühere Versionen > ND6: Entwicklung

Document command is not availible

(1/2) > >>

stitze:
Hallo liebe Notes Entwickler

ich hab folgendes Problem

Ich rufe mit folgenden Code ein Dialogfenster auf


--- Zitat ---Sub Click(Source As Button)
   Dim uiws As New Notesuiworkspace
   Dim db As NotesDatabase
   Dim uidoc As Notesuidocument
   Dim doc As NotesDocument
   Dim dialogdoc As Notesdocument    
   Dim varOk As Variant
   
   Set db = uiws.currentdatabase.database
   Set uidoc = uiws.Currentdocument   
   Set doc = uiws.currentdocument.document
   Set dialogdoc = db.createdocument
   
   dialogdoc.DocArt = "hinzufügen"
   
   Forall entry In doc.getItemValue("Supportgroup")
      dialogdoc.DocInhalt = dialogdoc.getItemValue("DocInhalt")(0) + entry + Chr(10)
   End Forall
   
   varOk = uiws.DialogBox( "dlgSupportgruppen" , False , False  , True  , False , False , False , "Supportgruppen bearbeiten",  dialogdoc, True, True )
   
   If ((varOk = True)) Then
      
      doc.Supportgroup = ""
      
      Forall entry In dialogdoc.getitemvalue("DocInhalt")
         doc.Supportgroup = doc.getitemvalue("Supportgroup")(0) + entry + Chr(10)
      End Forall
      
   End If
   
   Call uidoc.Refresh
   Call uidoc.Refresh
End Sub

--- Ende Zitat ---

an der rot markierten Stelle bekomme ich immer die Fehler Meldung


--- Zitat ---Document command is not availible
--- Ende Zitat ---

Ich habe keinen Plan was Notes von mir will.

Hat den jemand anderes ;)

Mfg

Sebastian

eknori:
wg:

This method is valid only when the document is in Edit mode

bekommst du den Fehler

stitze:
Nee ganau so wie ichs oben geschrieben habe "Document command is not availible".

Merkwürdig ist auch, wenn ich das Formular direkt aus dem Designer öffne, nicht über einen Button in der Ansicht, funktioniert der ganze Spass  ???

stitze:
Antwort aber dein Tipp war nicht schlecht, wenn das Dokument im Edit Modus ist, funktioniert der ganze Spass, warum ist das so?

Bzw. wie muss ich das Dokument denn dann öffnen die Aktion sieht im Mom so aus


--- Code: ---@Command([Compose];"frmProblem")

--- Ende Code ---

eknori:
wg:

This method is valid only when the document is in Edit mode

Navigation

[0] Themen-Index

[#] Nächste Seite

Zur normalen Ansicht wechseln