One of the coolest new features of Domino 6 is In-View editing. You can now create documents directly from a view or folder, and you can edit existing documents through a view. A perfect example of this new feature is Domino 6 mail template, which uses this capability to enable you to enter an appointment into your calendar from the calendar view.
This In-View editing is not supported for Web users. |
A new event, Inviewedit, has been added to views and folders to enable you to write code that handles what happens when a user tries to add a new document or edit an existing document from a view or folder.
You should be prepared to see one or more questions about the In-View editing feature on the exam. |
Although the Inviewedit event works in folders, new documents created from a folder are not added to the folder; they must be dragged, moved, or added to the folder. |
To allow users to create a new document from a view, follow these steps:
1. | Open the view from which users should be able to create new documents. |
2. | Right-click and choose View Properties from the menu, which opens the View properties box. |
3. | Click the Info tab (second tab) and enable the Create New Documents at View Level option. |
4. | Choose the InViewEdit event in the Objects panel of the Programmer's Pane. |
5. | Write the LotusScript code necessary to create a new document. |
6. | Save the view. |
Inviewedit events fire for embedded views if the Selection Tracks Mouse Movement is disabled on the Display tab of the Embedded View Properties box. |
To allow users to edit existing documents directly in a view without opening the document in a form, you must specify which columns in a view or folder contain fields that the user can edit.
The following steps outline the process required to allow users to edit documents directly in a view.
1. | Open the view that is to allow direct editing. |
2. | Select the column that is to display the editable field. |
3. | Right-click and choose Column Properties from the menu, which opens the Column properties box. |
4. | Check Editable Column on the Info tab (first tab) of the Column properties box. |
5. | Select the Inviewedit event in the View objects list in the Programmer's Pane. |
6. | Code the Inviewedit event with LotusScript to specify what should happen when fields are edited. |
7. | Save the view. |
18.116.37.129