Hello,
I am modifying an existing Web App Builder template and in order to complete the functionality of a widget I need it to make a connection to a backend service. When I pull up the service url, a form comes up that needs to be filled. I have the information for the form stored in a JSON. I want to pass that to the backend but I am getting errors on how to make the POST request.
Here is what I've tried inside of a function:
Robert,
But when I do a test example and fill out the form in our backend service and hit submit, I get a proper json as a result of it:
{ "jobIds": [ 11924 ] }
Robert,
Does "yourinputparametername" refer to the label of the input box on the form in the backend service? So if I have multiple input boxes that need a value (because jobIds is an object where each property refers to an input box on the backend form), I would just need to add all of them in there one by one?
Hey Robert,
I have a quick question. I see in the example code you wrote out above (with the code taking a ppin for an input value), above the resultsDiv declaration, you are including or linking to a proxy via:
esriConfig.request.proxyUrl = 'proxy/proxy.ashx';
Is that necessary? Is a proxy setup needed for an esriRequest?
It is if your request exceeds the string limit of a get request or you are using secured services
You can save the form data using a form backend service
You can save the form data using a form backend service