Domino 9 und frühere Versionen > ND6: Entwicklung

RichtText im UiDoc über Backend ändern

<< < (2/2)

McGo:
Habe mir nochmal die NotesHilfe im Detail angeguckt und was gefunden:


--- Zitat ---Modifications made to non-rich-text items on the back-end document accessed through the Document 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 the Document property (for example, if you use GetDocumentByUNID) do not appear immediately unless the AutoReload property is True. To cause the modifications to appear when the AutoReload property is False, call Reload or close the document and reopen it.

Modifications made to rich-text items on the back-end document do not appear on the current document until it is closed and reopened.
--- Ende Zitat ---

Ich würde es gern verstehen. Bedeutet das, dass ich die Änderungen zwar gültig in das Document schreibe, durch die fehlende Anzeige im current document jedoch nicht angezeigt werden und schliesslich (weil ich mich im QuerySave befinde) der im UI angezeigte Inhalt von RTF in jedem Fall die Änderungen der RTI über das Backend beim End Sub des QuerySave Ereignisses überschreibt?

Würde für mich als Konsequenz bedeuten, dass ich sämtliche Änderungen an RTF über das Backend nach dem Speichern (z.B: QueryClose) machen müsste...

Wäre schön, wenn mir das jemand mal erklären könnte...

Danke,
Mirko

DAU-in:
Du musst die Änderungen an einem RichtextItem immer abspeichern.

Danach musst du das Frontenddokument schliessen, und über Notesuiwokspace.editdocument wieder öffnen.

Du musst Änderungen im Frontend und im Backend immer sauber voneinander trennen UND abspeichern, sonst gibt das Kuddelmuddel.

Grüsse

Dau-in

Navigation

[0] Themen-Index

[*] Vorherige Sete

Zur normalen Ansicht wechseln