yaip
Posts: 0
Joined: Sun Dec 09, 2012 2:07 am

Select control is empty

I have a REST service that returns code and description. I then bind the returning results as following. Let's say the select control's name is loc. So I'm binding the code to the value and the desc to the label. Also, I'm binding the method response to the selectmenuitem. When I test it, no values are seen.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Select control is empty

Please post a screen shot of the response mapping.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Select control is empty

Also, look in the console if there are no JS errors...

yaip
Posts: 0
Joined: Sun Dec 09, 2012 2:07 am

Select control is empty

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Select control is empty

And any errors in the console?

yaip
Posts: 0
Joined: Sun Dec 09, 2012 2:07 am

Select control is empty

XMLHttpRequest cannot load a href="http://" rel="nofollow"http:///a... Origin http://project.tiggzi.com is not allowed by Access-Control-Allow-Origin.

yaip
Posts: 0
Joined: Sun Dec 09, 2012 2:07 am

Select control is empty

When I test the REST service, it returns data, such as:

{
"GetAllLocationsMethodResult":[
{
"intlocationID":1,
"strlocationName":"--"
},
{
"intlocationID":2,
"strlocationName":"LW"
},
...

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Select control is empty

The service doesn't support cross-domain calls: http://docs.tiggzi.com/documentation/...

yaip
Posts: 0
Joined: Sun Dec 09, 2012 2:07 am

Select control is empty

I read the documentation. According to it, Cross-origin resource sharing (CORS) is the right way to do it. But how and where do I do it?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Select control is empty

On the service side, you need to an extra header.

Return to “Issues”