var dataURL = "urlTo .xsodata file";
var oModel = new sap.ui.model.odata.ODataModel(dataURL, true);
var products = new sap.ui.model.json.JSONModel();
oModel.read("/input('"+input+"')/Results/", null, null, true, function(oData){
products.setData(oData.results);
});
this.getView.setModel(products);
This is my .xsodata file
service napespace "_SYS_BIC"{
"calc View Name" as "PricingTool"
parameters via entity "input"
results property "Results";
}
I tried adding more entities with different names and calling those when I make the OData call but that didn't work. How can I update this to allow more parameters?