Hi All,
I have a requirement where I need to expose a HANA Calculation view with mandatory input parameters.
I have done it using OData and getting the odata in sapui5 odata model.
But not able to bind it to the table.
The $count of the url is returning 20.
And The table is having 20 empty rows.
var oDataModel = new sap.ui.model.odata.ODataModel(serviceUrl, false,username, pasword);
sap.ui.getCore().setModel(oDataModel, "main");
And the table is :
oTable = new sap.ui.table.Table("oTable", {
visibleRowCount : 15 } );
var oColumn = new sap.ui.table.Column({
label : new sap.ui.commons.Label({text: "Col1"}),
template : new sap.ui.commons.TextView().bindProperty("text" , "{BUKRS}")
});
oTable.addColumn(oColumn);
oTable.bindRows("main>/INPUTS(INP_1 = '100')/Results");
I am getting 20 Rows in table but all are empty (OData has entry for all 20 rows)
Please help.