Hi, Is there any function to know it is in editing mode or reading mode?
I want to do some checking depending on the mode.
Thanks
Hi, Is there any function to know it is in editing mode or reading mode?
I want to do some checking depending on the mode.
Thanks
Subject: How do I which mode it is in?
From formula language? From LotusScript? From C? From Java?
In general, LotusScript can tell you with the NotesUIDocument class, the EditMode property, while formula language has the @IsDocBeingEdited function. C and Java won’t really tell you, as there is no real edit or read mode from the back end.
Subject: from Designer help…
LOTUSSCRIPT/COM/OLE CLASSES
EditMode property
Example
Read-write. Indicates whether a document is in Edit mode.
Defined in
NotesUIDocument
Data type
Boolean
Syntax
To get: flag = notesUIDocument.EditMode
To set: notesUIDocument.EditMode = flag
Legal values
True indicates that the document is in Edit mode.
False indicates that the document is in Read mode.
Language cross-reference
@IsDocBeingEdited function in formula language
LOTUSSCRIPT/COM/OLE CLASSES
QueryModeChange event
Example
Occurs just before the current document changes modes (from Read to Edit mode, or from Edit to Read mode).
Defined in
NotesUIDocument
Syntax
QueryModeChange( Source as NotesUIDocument , Continue as Variant )
Parameters
Source
NotesUIDocument. Read-only. The current document.
Continue
Boolean. Read-write. Indicates whether or not the document will change modes. Initially set to True. Set this parameter to False if you do not want the document to change modes.
Usage
When you create a script that responds to this event, Domino creates the syntax of the event for you (including the parameters). You do not need to type it in.
Use the EditMode property on Source to determine the current mode (before changing).
Subject: RE: from Designer help…
Thanks!