WIDGETS AND LIVE TEXT


How do I create a Web page widget?
You can create a widget that acts on a default value, selected Live Text, or other selected text using a single form on a specific Web page. Or you can create a widget that can perform one or more actions based on an overall Web page. You can optionally require that the user authenticate before using the Web page action.

About this task

For widgets samples, see the https://greenhouse.lotus.com/plugins/plugincatalog.nsf/home_full.xsp?fProduct=Lotus%20Notes%20and%20Domino and the Notes and Domino wiki.

Note: You can host a Web application in the local Web container, however by default and for security reasons, the local Web container port value changes every time you restart the client. Notes 8.5.3 and greater enables you to create a Web page widget from the current context (for example, the local Web container) based on a local Web application and then manage the widget's URL value in its XML file to resolve to the actual local Web container URL. This enables you to force a Web page widget to open in the local Web container, rather than referencing an old, invalid port. When you create a Web page widget that references the local Web container, the widget stores the port in itsurl= statement value. This is handled automatically when the Web page widget is created by the wizard. Without this, the Web container changes ports each time you restart the client causing the widget's URL to be invalid.

Procedure

1. Open the target Web page on which you want to base the new widget and with which you want the action to take place.


2. Click the Configure a Widget from Current Context toolbar button to start the wizard.
3. Choose one of the following options and click Next to open the Configure a Widget dialog. For this example, click From a form on this web page. 4. Select a form on the page as prompted. For example, click Form 1 on the Select a form on this page page and the corresponding form, in this case the Search this Forum field highlights in green to indicate it is the corresponding form field.
5. Accept the Embedded browser option of Default.
6. Click Next to open the Configure a Widget dialog.

7. Specify a widget name or accept the default.

8. Specify what you want to do with the widget and click Next.

9. Depending on the source context, specify additional options on the Advanced tab as follows and then click Next to open the Wiring an action to configure a widget dialog. 10. The Wire an action to configure a widget dialog prompts you to specify whether to use recognized content or other content, specify the content (type) and then wire a Content property to a Widget property. Entries in the Content property field are derived from the selected content (type), which is the field next to the New Recognizer button. Entries in the Widget property field are derived from the fields you selected on the previous Configure a widget dialog. See "How do I wire a widget action" for related information.

11. Click Next to view the Test and Publish panel instructions and then Finish to create the widget and close the wizard.

Related concepts
How do I create and share widgets?
How do I create a new widget using the wizards?

Related tasks
How do I wire a widget action?
How do I publish a widget to the catalog?
How can I set authentication controls for widgets I create?
How do I configure a widget action?