Hi ,
i am getting this error.How can i fix these error.
Error in resource configuration for action odata. Expected response to contain an array but got an object
Here is my sample code
var myData = angular.module("sample",['ODataResources']); myData.controller("MyController",function($scope,$odataresource){ $scope.results = $odataresource("http://ServerURL/ODS/SAP_SUP_WM_DLITE_SRV/ProductHeaderSet") .odata() .filter('EnteredBy','DEMOUSER') .orderBy('OrderType','asc') .query(); });
Please Suggest me to fix these error.
Hi ,
i am getting this error.How can i fix these error.
Error in resource configuration for action
odata. Expected response to contain an array but got an objectHere is my sample code
var myData = angular.module("sample",['ODataResources']); myData.controller("MyController",function($scope,$odataresource){ $scope.results = $odataresource("http://ServerURL/ODS/SAP_SUP_WM_DLITE_SRV/ProductHeaderSet") .odata() .filter('EnteredBy','DEMOUSER') .orderBy('OrderType','asc') .query(); });Please Suggest me to fix these error.