Domino 9 und frühere Versionen > Entwicklung

Aktualisieren vom Schließen

<< < (2/2)

rar:
Probier mal dasda

Dim doc As NotesDocument
Dim resp As NotesDocument
Dim coll As NotesDocumentcollection
Set doc = Source.Document
Set coll = doc.Responses
If Not coll Is Nothing Then    
   Set resp = coll.GetFirstDocument
   Do While Not resp Is Nothing
      Call resp.ComputeWithForm(True,True)
      Call resp.Save(True,True)
      Set resp = coll.GetNextDocument(resp)
   Loop
End If

hmarco:
Hallo,

der Fehler tritt nicht mehr auf.  :D

Jedoch macht er die Aktulisierung nicht.  :'(

Es wird nämlich das Skript im QueryOpen vom Teilprojekt
nicht nochmal ausgeführt.

Mfg Marco

ata:
... für die Aktualisierung während der Eingabe nimmst du den Code ins PostRecalc...

ata

rar:
Das ComputeWithForm berechnet nur das Dokument neu. (Formeln in berechneten Feldern und so.) Es fuhrt aber nicht das script im Queryopen aus, da das Dokument ja nicht geöffnet wird.

Du könntest aber das Script aus dem QO des Teilprojektes in das vorherige Script einfügen...

Do While Not resp Is Nothing
  resp.Autor3 = doc.Systemtechniker
  Call resp.ComputeWithForm(True,True)
  Call resp.Save(True,True)
  Set resp = coll.GetNextDocument(resp)
Loop

-rar

Navigation

[0] Themen-Index

[*] Vorherige Sete

Zur normalen Ansicht wechseln