Das Notes Forum

Domino 9 und frühere Versionen => ND6: Entwicklung => Thema gestartet von: Untitled am 18.10.06 - 17:45:17

Titel: Backend-Frontend-aktualisierung funktioniert nicht wie erwartet
Beitrag von: Untitled am 18.10.06 - 17:45:17
Hi zusammen

Wieder mal ein Problem:

Folgender Code ist in einer Formularaktion gegeben:
Code
	Dim ws As New NotesUIWorkspace
	Dim uiDoc As NotesUIDocument
	Dim doc As notesDocument
	
	Set uiDoc = ws.CurrentDocument
	Set doc = uiDoc.document

	doc.typeGA = "1"

Wenn ich auf die Aktion klicke, ist das Feld "typeGA" im Frontend (wenn ichs mit den Dokumenteigenschaften anschaue) plötzlich auf "1" gesetzt (vor dem Klick war es noch leer).

Warum zeigt mir plötzlich das FRONTEND ein im BACKEND geänderter Wert an, ohne reload, save usw.?

Habe ich was übersehen?  ???

Auf Hilfe hoffend,
Moritz
Titel: Re: Backend-Frontend-aktualisierung funktioniert nicht wie erwartet
Beitrag von: m3 am 18.10.06 - 17:50:46
Die Designer-Hilfe zu "NotesUIDocument.document" ist Dein Freund:
Zitat
Modifications made to non-rich-text items on the back-end document accessed through this property appear on the current document immediately. Modifications made to non-rich-text items on the corresponding back-end document accessed from the front-end document but not through this property (for example, if you use GetDocumentByUNID) do not appear immediately unless the AutoReload property is True.
Titel: Re: Backend-Frontend-aktualisierung funktioniert nicht wie erwartet
Beitrag von: Untitled am 18.10.06 - 18:11:57
Das wars! Vielen herzlichen Dank!!