Disable oData $batch request
The blow post creates a simple oData service from a CDS view and consumes the oData service to create fiori app with search enabled list report with object page.
During the search it requests $batch request and no data is retrieved and need to disable the $batch request.
Below we have a simple CDS view for the flight data.
CDS view data preview-
Register the service in the gateway.
Test in the gateway client. We receive all the records.
Till now the CDs view and the service works correctly.
Create a list report fiori app in the web-ide.
Choose the backend service-
Select the annotation file.
Select the oData collection-
Test the app.
Select the app.
Now we have the search and the list. Click on GO button to get all the records.
Its shows no data found.
Check the issue in the browser – console.
The search fires a $batch POST request.
In the app- open the mainfest.json file and go to the MODELS
Add- “useBatch”: false in the model. Save.
Now again launch the app and select GO and here we can find the records.