I have a working OData endpoint where I can look at individual datapoints. (For example, localhost/myData/person(10) has the data of the 10th person.)
However my objects' values in my JayData javascript are not being populated. When I print:
console.log(person[10]);
Every object parameter in initData is undefined.
My full script is:
var ctx = new WebApplication.resource_dbEntities({ name: 'oData', oDataServiceHost: 'http://localhost:8080/Resource/example.svc' });
ctx.onReady(function() {
ctx.person.toArray().then(function(person){
console.log("Person[10] is:");
console.log(person[10]);
person.forEach(function(p) {
//Always prints "undefined" :(
console.log(p.person_lastname);
});
})
.fail(function(r){
console.log(r);
});
});
UPDATE:
The server is most definitely sending data - see a clip from the network pannel on the webpage.
Note: I have posted additional details on the JayData forum.