on 01-27-2018 7:33 AM
We are passing filters in bindRows below is our code.From backend data is coming properly.But its not getting bing with the table.No errors are getting displayed.
filter2 = new sap.ui.model.Filter("CreatedOn",sap.ui.model.FilterOperator.BT,fdate,tdate);
var filter = new sap.ui.model.Filter("Type" ,sap.ui.model.FilterOperator.EQ,'A');
table.bindRows('/DoaReplacerepSet',null,null,[filter,filter2]);
table.setModel(odata);
We migrated from db2 to hana database.Before this code was working in db2 now we moved to latest library of SAPUI5 and its stopped working.Our last SAPUI5 Version was 1.8 now its 1.42.
Your current code is not working since the Syntax for binding the aggregation has been changed in the releases after your last version.
Use the new syntax ( as mentioned by Jun Wu) which should make your code work like earlier.
var afilter = [];
filter2 = new sap.ui.model.Filter("CreatedOn",sap.ui.model.FilterOperator.BT,fdate,tdate);
afilter.push(filter2);
var filter = new sap.ui.model.Filter("Type" ,sap.ui.model.FilterOperator.EQ,'A');
afilter.push(filter) table.bindRows('/DoaReplacerepSet',{ filters : afilter });
table.setModel(odata);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
for bindRows, please follow this syntax
https://sapui5.hana.ondemand.com/#/api/sap.ui.base.ManagedObject/methods/bindAggregation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.