Embedded elements are Domino design elements and controls that can be embedded on a page, form, subform, or document. Embedded elements often enable a developer to provide greater usability, and they also make it easier to develop a single application that has similar functionality for both Notes clients and Web browsers. Because Notes elements must be converted to HTML, many Notes elements lose some of their functionality when accessed through a Web browser. Embedded elements allow a developer to maintain much of the native Notes client functionality when developing Web applications, thus providing a rich and more user-friendly application.
The Domino elements that can be embedded include the following:
Date picker
Editor
Folder pane
Outline
Scheduler
Single-category views
Views
Each of these elements is discussed in the following sections.
The embedded date picker works with open calendar views to enable a user to pick a day that is then opened in a calendar view with all the calendar entries for that day. In order to work properly, the embedded date picker must be in the same frameset as an open calendar view.
Embedded date pickers are not supported for Web applications. |
To embed a date picker, follow these steps:
1. | Open the form, page, or subform that will contain the date picker. If you want to embed the date picker in a document, open the document. |
2. | Position the cursor where you want the date picker to appear on a page, form, subform, or in the Rich Text field of a document. |
3. | Choose Create, Embedded Element, Date Picker from the menu. |
4. | Right-click the date picker object and choose Date Picker Properties to configure the date picker's properties. |
5. | Save the form, page, subform, or document. |
Domino 6 enables you to specify which open calendar view should work with the date picker. By default, all open calendar views will respond to dates picked in the date picker. |
Embedded editors allow you to build more user-friendly applications because you can embed one or more forms into a form, allowing a user to edit multiple documents at one time. Additionally, you can use targeting, in which you link an embedded editor to an embedded view, enabling users to edit documents in the view without needing to open a new window.
Although you can do nearly anything in an embedded editor that you can do in a form, the following objects should not be used in an embedded editor:
|
To create an embedded editor, simply follow these steps:
1. | Open a form in the Designer client. |
2. | Position the cursor where you want the embedded editor to appear. |
3. | Choose Create, Embedded Element, Editor from the menu. This opens the Insert Embedded Form dialog box. |
4. | Choose one of the options to determine how the editor will work:
|
5. | Right-click the embedded editor and choose Properties to launch the Embedded Editor properties box. |
6. | |
7. | Save the form. |
To use an outline in your application, you must embed it in either a form, page, or a Rich Text field in a document. To embed an outline on a form, page, or document, follow these steps:
1. | Open a form, page, or document that will contain the outline. |
2. | Place the cursor where you want the outline to appear. If you are placing the outline in a document, you must be in a Rich Text field. |
3. | Choose Create, Embedded Element, Outline from the menu, which will display the Insert Embedded Outline dialog box. |
4. | Select the outline you wish to embed. |
5. | (Optional) If you want to programmatically choose which outline to display, enable the Choose an Outline Based on a Formula option and then write a formula in the Programmer's Pane that returns the name of the outline to display. |
6. | Right-click the outline and choose Outline Properties to configure the outline properties. |
7. |
The embedded scheduler is a very handy tool that enables you to build a form or subform that can display users' schedules, allowing users to view each other's schedules and open other users' calendar views.
There are four steps to using an embedded scheduler:
1. | Embed a scheduler on a form or subform. |
2. | Create the fields that the scheduler needs to interact with the user. |
3. | Write the code needed to interface the scheduler with the fields. |
4. | Configure the scheduler's properties. |
Each of these four steps is explained in the following sections.
To create an embedded scheduler on a form or subform, follow these steps:
Embedding a view or a folder pane in a page or form allows you much greater control over how a view looks and works on the Web. What's more, you can you combine other design elements with the view to provide additional functionality on the Web. To embed a view or a folder pane, follow these steps:
An embedded view can be restricted to a single category in that view so that only documents that are in the chosen category will be displayed.
To make an embedded view show a single category, you must categorize the embedded view. |
Follow these steps to create a single-category embedded view:
1. | Open a form in the Designer client. |
2. | Position the cursor at the place in the form where the view should appear. |
3. | Choose Create, Embedded Element, View from the menu, which opens the Insert Embedded View dialog box. |
4. | Select the view you want and click OK. |
5. | In the Programmer's Pane, choose the Show Single Category event. |
6. | Write a formula that will return the category that should be displayed. |
7. | Save the form. |
3.15.223.160