How do I call a REST service that I created in the ui from Javascript? How do I get the results of this call in Javascript?
How do I call a REST service that I created in the ui from Javascript? How do I get the results of this call in Javascript?
code
service_name.execute({});
/code
You should still map the service, so you can display the result on a page.
Output from a service call can only be mapped to a grid/list or a local storage variable, which iterates over the results. I just want the results. I have attempted to map the results to a local storage variable and add to a string on each iteration but this causes unexpected behavior (white screen or app goes back to start page). I just want to know how to get the results in javascript so I can do something like:
service_name.execute({});
var results = service_name.results
You could use service's success event to get the data it returns: http://help.tiggzi.com/documentation/...
That works! Awesome support Max! Thank you!
Hi Max,
One other related question: I would like to make some modifications to the result set (such as sorting) before mapping the output to a list on the screen. I tried making these changes in the success event but the changes don't get reflected when mapped to the list. Any suggestions?
FYI that page is gone, can you report the correct url?
Here you are: https://getsatisfaction.com/apperyio/...
// also there is a link in the bottom of the above link - here is correct reference: https://getsatisfaction.com/apperyio/...