Using a service to populate form items

You can use a service to populate a Drop Down, Select One, or Select Many form or app page item.

About this task

The following instructions describe how to populate a Drop Down, however the same instructions apply for populating the Select One and Select Many form or app page items.

Procedure

  1. Select Drop Down from the Palette and drop it onto your form or app page.
  2. Select the Drop Down widget.
    The Properties panel displays on the right side of the screen.
  3. Click the Events tab.
  4. From the Client Side: list, select an action to associate with the service.
    A window for the service opens. From this window, you can:
    • Select a predefined action, such as Run a Formula, Call a Service, or both.
    • Insert your own custom code in the Custom Actions area.
  5. Select Call a Service.
    From this menu, you can:
    • Select an existing service from the menu. If you select an existing service from the menu, go to step 9.
    • Create a service call by clicking Add/Edit Service Configuration. To configure a service, go to step 6.
  6. When you click Add/Edit Service Configuration, the Service Configuration window opens.
    Choose one of the following options:
    • Select from Service Catalog
    • Select from Domino Database
    • Enter a URL

    See Adding and configuring a service for more information about each option.

  7. Click the Inputs tab.
    1. Select a source from the Select source: window.
    2. Select a target from the Select target: window.
    3. Click the connector icon located between the two windows to link the source and the target.
      The connected source and target are shown in the Assigned Inputs section of the page.
  8. Click the Outputs tab.
    1. Select a source from the Select source: window.
    2. Select a target from the Select target: window.
    3. Click the connector icon located between the two windows to link the source and the target.
    The connected source and target are shown in the Assigned Outputs section of the page.
  9. Click OK to exit the Service Configuration.

All form or app page item data is stored in database columns. For Drop Down, Select One, Select Many, and Survey items, the data column must be large enough to accommodate the largest value a user can select. The amount of space that is allocated to a database column is based on the larger of either the Storage Size parameter (50 characters), or the largest defined static value. As it is possible to pull information from a service or from JavaScript into the previously listed form or app page items, Domino Volt cannot calculate the largest size needed. To set larger database columns, modify the Saved Value character limit field to ensure that it is large enough to hold the largest value expected.

  1. Change the size of the Saved Value character limit field to the required number of characters.