Reputation: 21
currently i am facing issues with my xsodata service. It is created based on HANA calculation view. It has one collection with about 40 properties. I want to use filters and the select system query.
var aFilter = [new sap.ui.model.Filter("YEAR", "EQ", "2016"),
new sap.ui.model.Filter("MONTH", "EQ", "12")];
oModelBstVertraege.read("/Collection", {
"urlParameters": {"$select": "YEAR,MONTH"},
"filters": aFilter,
"success": (oData, response) => {
console.log(oData);
}
});
I expected this code snippet to just return the entries for the properties YEAR and MONTH where YEAR equals 2016 and MONTH equals 12. I expect about 7500 entries but only receive one. also when i comment out the "filters" I only receive one entry.
Has anybody suggestions?
Thanks
Upvotes: 0
Views: 701