Disabling oData $batch request

light111Disable 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.

12

CDS view data preview- 

3

Register the service in the gateway.

4

Test in the gateway client. We receive all the records. 

5


Till now the CDs view and the service works correctly.

Create a list report fiori app in the web-ide.

6

Choose the backend service-

7

Select the annotation file.

8

Select the oData collection-

9

Test the app.

10

Select the app.

11

Now we have the search and the list. Click on GO button to get all the records.

12

Its shows no data found.

13

Check the issue in the browser – console.

14

The search fires a $batch POST request.

15

In the app- open the mainfest.json file and go to the MODELS

16

Add-  “useBatch”: false   in the model. Save.

17

Now again launch the app and select GO and here we can find the records.

18


 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s