tab.bindItems("/OrdItabSet", tab, null, oFilters);
I am developing a table and while binding data to it in need to apply filter my code is as below
XML code
<Table id="idProductsTable" rows="{/OrdItabSet}" >
<columns>
<Column>
<Label text="Employee Number" />
</Column>
<Column>
<Label text="Employee Name" />
</Column>
<Column>
<Label text="Default Password" />
</Column>
</columns>
<items>
<Input value ="{OrdItab/Order}"></Input>
<Input value="{OrdItab/Order}"></Input>
<Input value="{OrdItab/Order}"></Input>
</ColumnListItem>
</items>
</Table>
JS code
var tab = this.getView().byId("idProductsTable");
var oFilters = [ new sap.ui.model.Filter("CustId","EQ", "'"+custId+"'") ]; |
tab.bindItems("/OrdItabSet", tab, null, oFilters);
But its showing no data.