In this example we will call a REST endpoint to return a series of rows that we want to use to populate a dropdown in our Volt app. I have chosen to use a free service, the Brewery Open API. Using Link we can create a service that will enable this content to be pulled into our Volt applications.
Create Link Connector
Launch the HCL Link admin page, http://localhost:9990/login (In my deployment I changed the port).
Make sure that you are working with the “_app_volt” project and “deploy_action=true” in the url. I set a bookmark that has the relevant url suffix, http://localhost:9990/workspace?_p=60a4454d8f331f240bfea01b&app=_app_volt&deploy_action=true.
Close the popup dialog that shows when the page first loads.
On the bottom of the screen click “Connections”, and then “New”.
...
The name will appear in the HCL Volt Service Catalog dropdown, therefore it should be something that is easily recognized and understood by those that will use it.
...
Create an Action
7. The Connection now appears in the Connection List. Expand the Connection List, hover over “Breweries (REST)”, click on the 3 vertical dots and click “New Action”.
...
14. You are now ready to use the Link Connector/Action!
Setup Service in Volt
15. Create a table on your form canvas and add to it a few fields. Add a button to the form which will be used to call the Brewery service. In the field properties, under “Service” click the “On click, call a service“ checkbox. Click “Add/Edit Service Configuration”
...