LOTUS INOTES


Using widgets in Lotus iNotes
You can define a set of widgets that are integrated into the IBM® Lotus® iNotes™ mail client, and you can specify the toolbox catalog and category names from which users can select and install their own widgets. These widgets display in the Widgets folder in the navigation pane. When a user launches a widget, it may optionally solicit some input within a dialog or from selected text on the page, and then eventually open an external Web page in a new tab or a new browser window. Users can enter any text that is required by the service (such as text to be translated by a translation service), and the application results or output is displayed.

Enabling and configuring widgets in Lotus iNotes

Enable this feature by checking these two mail policy settings on the Lotus iNotes - Configuration tab of the Mail policy settings document:


If you do not use policies or if you want to enable or disable this feature temporarily on a trial basis, you can use the NOTES.INI setting iNotes_WA_Widgets=1 to enable it server-wide, or iNotes_WA_Widgets=0 to disable it server-wide. Using this setting overrides any policy setting.

To configure this feature, edit the inotes_config.xml file (located in the Domno/Data/domino/html folder) to include the widget configuration information. If this file does not exist, you can create this file based on the example provided below. The file may include one of both of the following elements:


The following is example markup for inotes_config.xml

<?xml version="1.0" encoding="UTF-8" ?>

<inotes:extensions xmlns:inotes="urn:x-inotes:ibm.com">


</inotes:extensions>

Differences between the Notes client and Lotus iNotes using HTTP POST

The IBM® Lotus® Notes® client and Lotus iNotes™ implement the HTTP POST form submission method of loading a Web page differently due to security restrictions imposed by the same origin server policy on browser applications. Notes first loads the form from the Web site into the embedded browser, and then inserts the required parameters into the DOM of the form and submits it by invoking the form's submit JavaScript™ method. However, since Lotus iNotes is a browser application running inside of the browser (rather than an embedded browser container like Notes), it cannot access any elements in the DOM of the Web application unless the Web application is served from the same server as Lotus iNotes. This is known as the same origin server security policy. Consequently, Lotus iNotes must create a form element with the known input fields and values, and then submit the form to the Web application server using the form's action URL, specifying that the response display in the target iframe. As a result, Lotus iNotes cannot support widgets for all Web sites that the Notes client can support. The method of form submission that Lotus iNotes uses may fail for a number of reasons, but these are the most common:


Known issues

Widgets created using Lotus Notes 8.0 do not specify the action URL for the form when using form based (HTTP POST) parameter submission. In 8.5, the widget creation wizard has been enhanced to provide the action URL in the <formAction> element. This means that widgets created with Notes 8.0 that use HTTP POST form submission will likely not work with Lotus iNotes and would need to be recreated using the Notes 8.5 wizard.

Web agent design elements in the toolbox catalog database must be signed using the Domino server's credentials in order to allow these agents to run for Lotus iNotes users. If the design elements are not signed by the server, Lotus iNotes users will not be able to browse the widgets catalog. Use the Domino Administrator client to sign the design documents in the database with the server's id.

Limitations

There are a number of limitations regarding the use of widgets with Lotus iNotes compared to the Notes client. These are listed below. Catalog widgets should be tested with Lotus iNotes to make sure that they work well on that platform prior to making them available to Lotus iNotes users. Catalog widgets are made available to Lotus iNotes users by adding "iNotes 8.5" to the platform field in the catalog document for the widget, and by including them in a category, or categories, specified in inotes_config.xml. Note that filtering widget catalog entries by platform type is relatively expensive from a server performance standpoint compared to filtering by category, so to maximize server performance, avoid including widgets that cannot support iNotes in the categories used to expose widgets to iNotes users. Following is a list of widget limitations when using widgets with Lotus iNotes:


Related topics