on 01-25-2017 7:16 AM
Hi,
I want to call OData get call with filter query from UI. I am using SmartFilterBar control. It has getFilters() method which returns all applied filters.
If I make a call like below, I can easily use it:
ODataModel.read(read("/EntitySet", { filters: smartFilterBar.getFilters();
But I wan to use sap.ui.model.odata.ODataModel's batch method createBatchOperation(sPath, sMethod, oData?, oParameters?) to make a GET call.
The problem here is, I can not pass filters in oParameters here. We have to pass filter in sPath as string.(e.g; EntitySet?$filter=(Plant%20eq%20%271000%27))
It means I have to stingify the smartFilterBar.getFilters(), and pass that string in sPath URL.
Could anyone suggest a better solution here?
User | Count |
---|---|
91 | |
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.