You can access the back-end document that is currently open through the NotesUIWorkspace and NotesUIDocument classes. Using the NotesUIView class, you can access the back-end documents in the view with the Documents property.
The NotesUIDocument class has the following properties:
Property
|
Data type
|
Description
|
Boolean |
(Read-write) True to automatically reload the current document any time there is a change. |
|
String |
(Read-only) The name of the current field if the document is in Edit mode. |
|
Boolean |
(Read-only) Indicates if a user cancels a dialog. |
|
NotesDocument |
(Read-only) A reference to the NotesDocument object associated with this document window, giving you access to the back-end properties and methods. If you modify and save an item using the NotesDocument object, the item is automatically updated in the workspace, except for rich text items. |
|
Boolean |
(Read-write) True for Edit mode. |
|
Boolean |
(Read-write) True to display field help. |
|
Boolean |
(Read-write) True if the horizontal scroll bar is visible. |
|
Boolean |
(Read-write) True to display hidden characters. |
|
Boolean |
(Read-only) True if the document is being accessed from the preview pane. |
|
Boolean |
(Read-only) True if the document is not yet saved. |
|
Boolean |
(Read-write) True if the lower pane containing the parent document is displayed. |
|
Boolean |
(Read-write) True if the lower pane containing the linked document is displayed. |
|
Boolean |
(Read-write) True if the ruler is visible. |
|
String |
(Read-only) The name of the window title. |
The NotesUIDocument class has the following methods:
Method
|
Description
|
Categorizes the current document. |
|
Clears the selected text. |
|
Closes the current document. |
|
Collapses all sections in the document. |
|
Copies the selected text to the Clipboard. |
|
Creates an object in a rich text item. |
|
Cuts the selected text and places it on the Clipboard. |
|
Marks the current document for deletion and closes it. The NotesUIDocument object is no longer available once you call this method. |
|
Deselects the entire contents of the current field. |
|
Expands all sections in the document. |
|
Appends the specified text to the specified or current field. |
|
Clears the contents of the specified or current field. |
|
Returns True if the specified or current field contains the specified case-sensitive text. |
|
Gets the text of the specified or current field. |
|
Sets the specified or current field to the specified text. |
|
Brings up the Find Free Time box. |
|
Brings up the Find Free Time box to allow searches for available meeting times. |
|
Finds the text in a given field. |
|
Creates a new mail document and prompts for recipients. |
|
Gets a specified object. |
|
Gets an embedded scheduler. |
|
Gets the selected text in a UI document. |
|
Goes to the first field or scrolls to the top of the document. |
|
Goes to the last field or scrolls to the bottom of the document. |
|
Given a field name, puts the cursor in the specified field in a document. |
|
Goes to the next field or scrolls so that it is visible. |
|
Goes to the previous field or scrolls so that it is visible. |
|
Places the cursor in the first editable field or the first button in a document. |
|
Imports a file to the document. |
|
Inserts the specified text at the current cursor position. |
|
Sets the URL navigation bar text. |
|
Starts the URL navigation bar spinner. |
|
Stops the URL navigation bar spinner. |
|
Pastes the Clipboard text to the current cursor position. |
|
Prints the current document. |
|
Refreshes the document. |
|
Recalculates the hide-when formulas for the current document; this is an expensive operation. |
|
Refreshes the current document with any changes made to the stored document. |
|
Saves the current document. |
|
Saves the current document as a new version. |
|
Selects the entire contents of the current field. |
|
Mails the current document and closes it. |
|
Checks the spelling in a document. |
The NotesUIView class has the following properties:
Property
|
Data type
|
Description
|
Variant of type DATE |
(Read-only) The date and time of the current region in a calendar view. |
|
Variant |
(Read-only) Returns the current category in the view for the current document. |
|
NotesDocumentCollection |
(Read-only) All the documents that the current NotesUIView event is working on. |
|
NotesView |
(Read-only) The back-end view that corresponds to the currently open view. |
The NotesUIView class has the following methods:
Method
|
Description
|
Implements the @Command([FilePrint]). Prints the currently open or selected document(s), or the current view. |
|
Selects the specified document in a view. |
For a list of events in NotesUIView, see "Event Descriptions" in the "Programming Overview" chapter.
See examples