Nintex Forms Enterprise Edition
This tutorial walks through steps to display current wind direction for the city selected on the form. The tutorial uses the Web Request form control from Nintex Forms Enterprise Edition to send a GET request to the Yahoo weather API (anonymous authentication), filtering based on the city selected on the form (ChoiceField).
Figure: Example of a form displaying wind direction for London; if another city is selected, the wind direction is updated for that city.
- List column WindDirectionID for binding the XPath value field
- List column WindDirectionText for binding the XPath display field
- Choice control “ChoiceField” with valid values for cities referenced by the API (example follows)
Once you have the above prerequisites, add the Web Request form control to the form and apply the following configuration. Publish the form and you're done!
Note: Red text indicates inserted references.
ID connected to
Text connected to
https://query.yahooapis.com/v1/public/yql?q=select wind from weather.forecast where woeid in (select woeid from geo.places(1) where text='ChoiceField')&format=json
To insert a reference to ChoiceField, select it from Named Controls in the Insert Reference dialog box.
XPath for display