Domino Code Fragment

Code Name*
NotesUIDocument method, Document
Date*
04/28/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.3.145.130.31
Description*
Retrieves item values through the `back-end' document that corresponds to the currently open uidocument using the NotesUIDocument method, Document .
Type*
LotusScript
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
You can retrieve (but not set) item values through the `back-end' document that corresponds to the currently open uidocument using the NotesUIDocument method, Document . The uidocument must have been saved for this property to be available, because without saving the document, there is no corresponding document in the database file to access. You may use any NotesDocument properties once the document property has been accessed. Once you have made changes through the back-end, you must execute the Reload method for the changes to display on screen.
Files/Graphics attachments (if applicable): Code:

Click here to view the example.

Dim workspace As New NotesUIWorkspace 'Declare workspace as a Notes Workspace type
Dim uidoc As NotesUIDocument
'Declare uidoc as the Notes Document Interface
Dim doc As NotesDocument
'Declare doc as an actual Notes Document (data)
Dim People As Variant
'Declare People as type variant
Set uidoc = workspace.CurrentDocument
'Set the uidoc to the current document (Interface)
Set doc = uidoc.Document
'Set doc to the current document (actual data)
ChapText = doc.ChapterTitletxt
'Set the variable to the value stores in the Notes field, ChapterTitleTxt
Messagebox ChapText(0)
'Display the value in ChapText (as above)