Das Notes Forum
Domino 9 und frühere Versionen => Entwicklung => Thema gestartet von: klaussal am 03.02.04 - 10:10:36
-
hi zusammen,
folgende aktion ändert ein oder mehrere docs, die damit aus der ansicht verschwinden (sollten). frage: warum bewirkt der view.refresh nix ? nach F9 ist aber alles ok ?
Sub Click(Source As Button)
Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim collection As NotesDocumentCollection
Dim dateTime As New NotesDateTime( "" )
Dim view As NotesView
Set db = session.currentDatabase
Set collection = db.UnprocessedDocuments
Set doc = collection.GetFirstDocument()
Set view = db.getView("jgh")
Call dateTime.SetNow
While Not(doc Is Nothing)
If Trim(doc.datum_archivierung(0)) = "" Then
doc.datum_archivierung = dateTime.dateOnly
Call doc.save(True, False)
End If
Set doc = collection.GetNextDocument(doc)
Wend
Call view.refresh
End Sub
-
Du aktualisierst ja auch im Backend - da siehste "vorne" nix.
NotesUIWorkspace.ViewRefresh tut's im Frontend.
Hth,
Bernhard
-
@bernhard,
jau, das war's. DANKE. :D :D :D
hatte wohl brett vorm kopf. ;D
-
Shit happens ;)
-
... manchmal kommt mann sich richtig doof vor. :P
-
Das zeigt, dass man schlau ist - sonst würde man das ja nicht merken ;-)
Bernhard