Skip to Content
avatar image
Former Member

how pass in multiple parameters as entity on xsodata call?

I have a calc view that I need to call and pass in multiple parameters in order to retrieve the data. I have done it for a different one but only passing a single parameter. How can I do it using multiple ones?

this is how I make the oData call in my controller.

var dataURL = "urlTo .xsodata file";

var oModel = new sap.ui.model.odata.ODataModel(dataURL, true);
var products = new sap.ui.model.json.JSONModel();"/input('"+input+"')/Results/", null, null, true, function(oData){


This is my .xsodata file

service napespace "_SYS_BIC"{
 "calc View Name" as "PricingTool"
 parameters via entity "input"
 results property "Results";

How can I take this and allow for more inputs?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Feb 15, 2017 at 05:51 PM

    Do you want to pass multiple input parameters or further filter the results based on columns? I also have a xsodata service pointed to a calc view with a single input parameter. When I bind my model to a UI5 table I also pass filters as well.

                path: "EACInput>/InputParams(IP_START_DATE=datetime'"+timephase_period+"')/Results",
                template: columnList,
                sorter: aSort,
                filters: oFlterAnd
    Add comment
    10|10000 characters needed characters exceeded