COMPOSITE APPLICATIONS - DESIGN AND MANAGEMENT


Creating a new Notes form with an embedded view
In the previous task, you created a local IBM® Lotus® Notes® database using the discussion template. You also created documents in that database to be later used to demonstrate inter-component communication in a composite application via the property broker function.

In this task, you enhance your Notes discussion database with a new Notes 8 form that has an embedded view. This form will later be used as the lower component in the composite application described in the overview. When used as a component and wired appropriately, this Notes form will have a causal relationship with the upper component and will list, in its embedded view, documents matching the value published, in reaction to user activity, by the upper component.

Use the following procedure to create a new Notes form for use as a component in your two component composite application.

1. Open MyDiscussion.nsf in your Lotus Notes 8 client.

2. Select any row in the displayed view.

3. Start IBM® Lotus® Domino(TM) Designer 8 by clicking View > Design. Domino Designer 8 opens and displays the list of forms in MyDiscussion.nsf.

4. In Domino Designer 8, click Create > Design > Form to create a new form in MyDiscussion.nsf.

5. At the top of the form, add the static text "Display documents in category".

6. Click File > Save to save the form. When prompted, name the form "DocByCategoryForm".

7. To the right of the static text, add a field to the form by clicking Create > Field. Type "CategorytoDisplay" in the Name field and set the Type field properties to Text and Editable.

8. Click to the right of your CategorytoDisplay field and press Enter twice to move the cursor down the new form.

9. Add an embedded view to the form by clicking Create > Embedded Element > View. When the dialog appears, click the By Category view name. Click OK when you have finished.

10. Click on the newly added embedded view to select it and then click Show single category in the Objects list (at the bottom of the list). Type "CategorytoDisplay" in the programmer's pane.


11. (Optional) Place your cursor to the right of the embedded view then press Enter to move the cursor down the form. Click Create > Field to add a text field named SaveOptions to your form as described in the following substeps: 12. Click File > Save to save the changes you have made in this new form.
13. Preview the form in Lotus Notes 8 by clicking Design > Preview in Notes while still in Domino Designer. The form appears in Lotus Notes 8.

14. Type in a string that matches the category value in the documents you created in the first task, such as "Category1" or "Category2".

15. Click View > Refresh to refresh the form's embedded view. The embedded view lists documents that contain the category value that matches the one you typed.

16. Press the Escape key to close this new document without saving it.

17. Close Domino Designer 8.

You now have a Notes form with an embedded view that you will use as one component in a two component composite application. You will enhance this form in a later task to support inter-component communication.

See Also