Get current values

if I use:

Dim workspace As New NotesUIWorkspace

Dim curdoc As NotesUIDocument

Set curdoc = workspace.currentdocument

Messagebox( curdoc.FieldGetText( “Titel” ) )

I will get the input from the text field “Titel” but I want the value witch has been saved.

As example the value is “Hello world” and the user opened the edit mode and changed it in “Hello You” the messagebox must return “Hello World” if the document is not saved yet.

Subject: try this

In that case you will need to store the previous value in a temp. field first since you read direct from the UI.

on the queryOpen

dim ws as new notesUiWorkspace

set ws.currentDocument.document.TempField = ws.currentDocument.document.YourField(0).

On the prompt refer to the temp field.

Subject: re

the value can be found in the backend document : workspace.currentdocument.document , the value is workspace.currentdocument.document.titel(0)