Skip to Content
0
Oct 28, 2019 at 07:48 AM

How to pass search in oData.read along with filters

174 Views

Hi,

I am trying to read oData service along with filters as below , which is working fine

this.getOwnerComponent().getModel().read(regPath, { async: false, filters: oFilters, success: function (oData, Response) { }, error: function () { busyDialog.close(); } });

But when try to add search to odata.read as below , it is ignoring search and giving me same results

this.getOwnerComponent().getModel().read(regPath, { async: false, urlParametrs: {"search": "200000002"}, filters: oFilters, success: function (oData, Response) { }, error: function () { busyDialog.close(); } });in Gateway client, i tried with URL where i can see the result

/sap/opu/odata/sap/EAM_OBJPG_MAINTORDANDOPER_SRV/C_ObjPgMaintOrderAndOperation?$filter=MaintenanceOrderType eq 'PM02' and (TechnicalObject eq 'p') & search=200000002