Home AppWorks

html5sdk: issue with read operation using model API

edited March 15 in AppWorks

I'm using html5sdk to read array of objects from a model, however the array returns empty, anything i can modify in the code to get it working:

var empModel = new $.cordys.model({ objectName: "App", 
                                fields:[ "identity","name", "crn", "consumption"], 
                                defaults: { namespace: "http://schemas/BASSEGASProject/App/operations", 
                                           //dataType: "json",
                                            method: "GetAllApps" }, 
                                read:{ method: "GetAllApps" } 
                            });
 empModel.read().done(function(response) {
                        console.log(response);//empty array
                    }).fail(function() {
                        //alert('fail');
                    });
Sign In or Register to comment.