LOTUSSCRIPT/COM/OLE CLASSES


InViewEdit event
Example

Allows the user to edit a document through its view column entries. Occurs as follows:

1. Query: when the user enters an editable view column entry.

2. Validate: when the user exits an editable view column entry.

3. Save: after validation of one or more view column entries in an existing document.

4. New entry: after validation of one or more view column entries in a new document.

Note This event is new with Release 6.

Defined in

NotesUIView

Syntax

InViewEdit(Source As NotesUIView, RequestType As Integer, ColProgName As Variant, ColumnValue As Variant, Continue As Variant)

Parameters

Source


RequestType ColProgName ColumnValue Continue
Usage

This event occurs only for an editable column. See "Allowing users to edit or create documents from a view" to learn how to design editable columns.

Use CaretNoteID to get the Note ID of the document containing the item represented by the current view column entry. If the user is creating a new document, this property has a value of "0" for the query request.

Making the programmatic name of a column the same as the name of the item associated with the column facilitates processing. You can then use the names in the ColProgName array to get and set item values.

The user clicks on or tabs to an editable column to edit it. A box opens containing the existing value which the user can then modify before clicking or tabbing out.

To process editable column entries in an existing document:


To process editable column entries in a new document:
The query and validate requests act upon one column entry. For efficiency, the save and new entry requests may act upon accumulated column entries.

A special case is a column that represents the item as an icon. You change the icon by writing to the item represented by the view column entry in a save request. Each time the user clicks on the column entry, your save code executes.

When you create a script that responds to this event, Notes creates the syntax of the event for you (including the parameters). You do not need to type it in.

Example