on 09-11-2017 10:49 PM
Hi Experts,
I have searched various links to find the solution/workaround but I'm unable to find any.
I have also gone through this link but couldn't understand what needs to be done to solve the issue.
https://github.com/SAP/openui5/issues/130
I basically want to pass something like this to my gateway to get the filtered set of values.
/sap/opu/odata/SAP/ZORDER_STATUS_SRV/ZORDER_ITEMSet?$filter=Vbeln eq '1506'
where Sales Order number will be dynamic , entered on screen and have to bind filter value with the input value.
I have tried something like below but in vain.
oTable1.setModel(oController.setModel());
oTable1.bindRows("/ZORDER_ITEMSet",undefined, [{path:'Vbeln' , operator: 'EQ' , value1: '{myModel>/Vbeln}'}]);
Any inputs will be appreciated, TIA
Sudha.
Hi Sudha,
Please try this:
var Vbeln = this.getView().getModel("myModel").getProperty("/Vbeln");
oTable.bindRows({
path: "/ZORDER_ITEMSet",
filters: [{new sap.ui.model.Filter({
path: "Vbeln",
operator: "EQ",
value1: Vbeln
})}]
});
Also please ensure:
1. The model myModel is set on the view
2. In your backend OData service, filtering functionality has been implemented.
Regards,
Rahul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.