Skip to content
Advertisement

UI5 Odata read call with filter and urlParameters simultaneously

Hi I am trying to call Odata read with filter and parameters. But not able to get the data back. Any inputs would be appreciated

JavaScript

Advertisement

Answer

try removing the square brackets around oFilter in your code:

filters: [oFilter],

should be replaced by

filters: oFilter,

the filters attribute expects an Array of sap.ui.model.Filter. Your oFilter variable is already an array of Filter-objects, therefor there is no need to put oFilter between square brackets.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement