Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

OData with HANA Calculation Views: Question about Input Parameters

$
0
0

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!


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>