Currently, I have a calculation view that takes in an input parameter called "CUSTOMER_ID", which I use to filter the results from my calculation view. My question is: is there a way to expose the calculation view using OData while also passing in an input parameter? In my case, I would like to pass in a particular customer id into my calc view as an input parameter.
I currently have a service called "pass.xsodata" and there I expose my calc view with the name "FORECAST_VIEW".
Right now, the UI looks like this:
var oModel = new sap.ui.model.odata.ODataModel("../../services/pass.xsodata");
var oControl;
var oTable = new sap.ui.table.Table("fcTable", {tableId: "fcTable", visibleRowCount: 15, width: "1200px"});
oTable.setTitle("Monthly Passengers");
// Add columns here...
oTable.setModel(oModel);
oTable.bindRows("/FORECAST_VIEW");
Any help would be greatly appreciated!