I have a service (ASP.NET WebApi) whose URL returns a single object:
http://localhost:60000/api/approvals/90a11073-cbfe-4442-9330-9b94d83d53a2
But I can't get the datasource to handle the scenario. The request is made and the response is ok but in the change event I don't have any data. the ok from qunit fails.
datasource.bind("change", function (e)
{
var element = datasource.get('90a11073-cbfe-4442-9330-9b94d83d53a2')
ok(element);
start();
});
Also inspecting e.sender.data() shows that there are no elements in the result!
Is this supported? How?
Thanks,
Pedro
http://localhost:60000/api/approvals/90a11073-cbfe-4442-9330-9b94d83d53a2
But I can't get the datasource to handle the scenario. The request is made and the response is ok but in the change event I don't have any data. the ok from qunit fails.
datasource.bind("change", function (e)
{
var element = datasource.get('90a11073-cbfe-4442-9330-9b94d83d53a2')
ok(element);
start();
});
Also inspecting e.sender.data() shows that there are no elements in the result!
Is this supported? How?
Thanks,
Pedro