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
Procedure
- Select Drop Down from the Palette and drop it onto your form or app page.
-
Select the Drop Down widget.
The Properties panel appears on the side of the screen for the selected item.
- Click the Events tab.
-
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.
-
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.
-
When you click Add/Edit Service Configuration, the Service
Configuration window opens.
Choose one of the following options:
See Adding and configuring a service for more information about each option.
-
Click the Inputs tab.
-
Click the Outputs tab.
- Select a source from the Select source: window.
- Select a target from the Select target: window.
- 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. - 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 Leap 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.
- Change the size of the Saved Value character limit field to the required number of characters.