Triggering a service from a button
You can use a service to add information to a form automatically after a user clicks a button.
To use a service call when the user clicks a button:
-
Add a Button to your form from the Palette if your form does not yet have one.
-
Select the newly added button.
The Properties side panel opens.
-
Select Call a service when clicked.
A menu opens where you can:
- Select an existing web service from the menu. If you select an existing service from the menu, go to step 8.
- Create a service call by clicking Add/Edit Service Configuration. To configure a service, go to step 5.
-
When you click Add/Edit Service Configuration, the Service Configuration window opens.
-
Enter the URL of your service
- Select Or, select a service and select a URL from a list of available services
-
Click the Inputs 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 Inputs section of the page.
-
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 displayed in the Assigned Outputs section of the page.
-
-
Click OK to exit the Service Configuration window.
Parent topic: Incorporating web services into your applications