Skip to Content
avatar image
Former Member

oData response does not contain the full result

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Dec 01, 2017 at 02:42 PM

    check network tab what request you are sending to backend.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 02, 2017 at 11:13 AM

    Hi,

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 04, 2017 at 06:53 AM
    Add comment
    10|10000 characters needed characters exceeded