Skip to Content
0

oData response does not contain the full result

Dec 01, 2017 at 10:30 AM

72

avatar image
Former Member

Hi,

My gateway serice is working fine.

URL: /sap/opu/odata/sap/SERVICE_NAME/PayYearSet/?$filter=PayType eq 'TRS'

But when I call service via WebIDE the oData array of result contains only 2 records:

var oModel = this.getOwnerComponent().getModel();
var oAppDataModel = this.getOwnerComponent().getModel("appData");
var oFilter = new sap.ui.model.Filter({
    path: "PayType",
    operator: sap.ui.model.FilterOperator.EQ,
    value1: sType
});

oModel.read("/PayYearSet", {
    filters: [oFilter],
    success: function(oData, oResponse) {
        try {
            oAppDataModel.setProperty("/PayYearData", oData.results);
        } catch (err) {
            //debugger;
        }
    },
    error: function(oResponse) {
        //debugger;
    }
});

Why/how can this happen?

Regards,

Bejglee

gateway.jpg (36.4 kB)
webide.jpg (17.0 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Jun Wu Dec 01, 2017 at 02:42 PM
0

check network tab what request you are sending to backend.

Share
10 |10000 characters needed characters left characters exceeded
Irfan Gokak Dec 02, 2017 at 11:13 AM
0

Hi,

Check your network it's calling the odata or not first.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Dec 04, 2017 at 06:53 AM
0
Show 1 Share
10 |10000 characters needed characters left characters exceeded

External breakpoint ? What's the result ?

0