APPLICATION DESIGN


Allowing users to edit or create documents from a view
You can give IBM® Lotus® Notes® users the ability to edit fields in an existing document or create a new document from a view. For example, you might use this feature in a ToDo view to change a work item from Incomplete to Complete. The IBM® Lotus® Domino(TM) mail template uses this feature to allow you to enter an appointment into your calendar from the calendar view.

Note This feature is not supported for Web users.

Usage Notes


To allow users to edit documents in a view

To let users edit an existing document without first opening the document, you must first identify the columns containing user-editable fields. Then you must supply code that controls what a user can do when editing the associated field. You can mark more than one column as editable. For each column you want to allow the user to edit:

1. Select the column that will display the editable field.

2. Choose Design - Column Properties.

3. Check "Editable column" on the Info tab (i) of the Column Properties box.

4. Click the Inviewedit event in the View objects list in the Programmer's pane.

5. Enter code to control what should happen when a user edits the field, as described in the programming topic InViewEdit event.

To allow users to create a new document from a view

1. Select the view from which users can create new documents.

2. Choose Design - View Properties.

3. Check "Create new documents at view level" on the Info tab (i) of the View Properties box.

4. Click the Inviewedit event in the View objects list in the Programmer's pane.

5. Enter code to create the new document, set the form value and to check and validate entries for the new document, as described in the programming topic InViewEdit event.

Coding notes


For a complete description of how to code the InVewEdit event, see the topic InViewEdit event.