Hi
I have created a generic service to map my Local storage variable array to a List.
This is my Jscript for the generic service.
Appery.getProgrammes = Appery.createClass(null, {
Code: Select all
init : function(requestOptions) {
this.__requestOptions = $.extend({}, requestOptions);
},
process : function(settings) {
settings.beforeSend(settings);
if (this.__requestOptions.echo) {
settings.success(this.__requestOptions.echo);
} else {
var cdata = Apperyio.storage.programmeList.get();
settings.success(cdata);
}
settings.complete('success');
}
});
This is the error:
======================
VM34736:202 Error: Attempt to access Array by property name : 'resource'
at Object.get (mapping-impl.js:325)
at Object.get (mapping-impl.js:343)
at Object.get (mapping-impl.js:310)
at Entry.window.entry.Entry.getValue (mapping-impl.js:82)
at MappingUnit.window.mapping_unit.MappingUnit.processMappings (mapping-impl.js:196)
at MappingUnit.window.mapping_unit.MappingUnit.process (mapping-impl.js:127)
at Function.processMappingAction (mapping-impl.js:10)
at derived.onSuccess (eval at globalEval (jquery-2.1.1.js:330), :171:22)
at derived.successHandler (appery.js:397)
at Object.proxy [as success] (jquery-2.1.1.js:513)
======================
The LSV does contain the correct info when I output it to the console.
This is my service response......
This is my mapping