How to use the odata.nextLink function in odata

To help you get started, we’ve selected a few odata examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Azure / azure-sdk-for-node / lib / services / resourceManagement / lib / resourceManagementClient.js View on Github external
if (modeValue) {
                // how
                var modeInstance = modeValue;
                propertiesInstance.mode = modeInstance;
              }
              
              var parametersValue = propertiesValue['parameters'];
              if (parametersValue) {
                var parametersInstance = parametersValue;
                propertiesInstance.parameters = parametersInstance;
              }
            }
          }
        }
        
        var odatanextLinkValue = responseDoc['odata.nextLink'];
        if (odatanextLinkValue) {
          var odatanextLinkInstance = odatanextLinkValue;
          result.skipToken = odatanextLinkInstance;
        }
      }
      
      result.statusCode = statusCode;
      result.requestId = response.headers['x-ms-request-id'];
      
      return callback(null, result);
    });
  };
github xautlx / s2jh4net / entdiy-assets / src / main / resources / META-INF / resources / assets / apps / plugins / free-jqgrid / plugins / grid.odata.js View on Github external
page: function (data) {
                                    var skip;
                                    if (data["odata.nextLink"]) {
                                        skip = parseInt(data["odata.nextLink"].split('skip=')[1], 10);
                                    }
                                    else {
                                        skip = p.odata.postData.$skip + p.rowNum;
                                        var total = data["odata.count"] || data["@odata.count"];
                                        if (skip > total) { skip = total; }
                                    }

                                    return Math.ceil(skip / p.rowNum);
                                },
                                total: function (data) {
github xautlx / s2jh4net / entdiy-assets / src / main / resources / META-INF / resources / assets / apps / plugins / free-jqgrid / plugins / grid.odata.js View on Github external
page: function (data) {
                                    var skip;
                                    if (data["odata.nextLink"]) {
                                        skip = parseInt(data["odata.nextLink"].split('skip=')[1], 10);
                                    }
                                    else {
                                        skip = p.odata.postData.$skip + p.rowNum;
                                        var total = data["odata.count"] || data["@odata.count"];
                                        if (skip > total) { skip = total; }
                                    }

                                    return Math.ceil(skip / p.rowNum);
                                },
                                total: function (data) {
github tt-acm / DesignExplorer / js / designExplorer.js View on Github external
folder.url = folder.url.split("&pageToken=", 1)[0];
            }

            folder.url +=  "&pageToken=" + data.nextPageToken

            prepareGFolder(folder);

        } else if (data["children@odata.nextLink"] !== undefined) {
            
            folder.url =  data["children@odata.nextLink"];

            prepareGFolder(folder);

        } else if (data["@odata.nextLink"] !== undefined) {
            
            folder.url =  data["odata.nextLink"];

            prepareGFolder(folder);

        }else { //this is the last page, so return googleReturnObj directly
            
            var csvFile = _googleReturnObj.csvFiles["data.csv"];
            
            if (csvFile === undefined) {
                alert("Could not find the data.csv file in this folder, please double check!");
            } else {
                readyToLoad(csvFile);
            }
   
        }
github Azure / BatchExplorer / src / app / services / azure-batch / pool-os / pool-os.service.ts View on Github external
expand(response => {
                return response["odata.nextLink"] ? this.http.get(response["odata.nextLink"]) : empty();
            }),
            reduce((resourceGroups, response: BatchListResponse) => {
github Azure-Samples / active-directory-dotnet-webapp-groupclaims / WebApp-GroupClaims-DotNet / Scripts / AadPickerLibrary.js View on Github external
return function (userQ, groupQ) {

                    if (userQ[1] == "success" && groupQ[1] == "success"
                        && userQ[0].error == undefined && groupQ[0].error == undefined) {

                        var usersAndGroups = userQ[0].value.concat(groupQ[0].value);

                        if (userQ[0]["odata.nextLink"] != undefined) {
                            userSkipToken = userQ[0]["odata.nextLink"]
                                .substring(userQ[0]["odata.nextLink"].indexOf("$skiptoken"),
                                userQ[0]["odata.nextLink"].length);
                        }
                        else {
                            userSkipToken = null;
                        }
                        if (groupQ[0]["odata.nextLink"] != undefined) {
                            groupSkipToken = groupQ[0]["odata.nextLink"]
                                .substring(groupQ[0]["odata.nextLink"].indexOf("$skiptoken"),
                                groupQ[0]["odata.nextLink"].length);
                        }
                        else {
                            groupSkipToken = null;
                        }
github Azure-Samples / active-directory-dotnet-webapp-groupclaims / WebApp-GroupClaims-DotNet / Scripts / AadPickerLibrary.js View on Github external
return function (userQ, groupQ) {

                    if (userQ[1] == "success" && groupQ[1] == "success"
                        && userQ[0].error == undefined && groupQ[0].error == undefined) {

                        var usersAndGroups = userQ[0].value.concat(groupQ[0].value);

                        if (userQ[0]["odata.nextLink"] != undefined) {
                            userSkipToken = userQ[0]["odata.nextLink"]
                                .substring(userQ[0]["odata.nextLink"].indexOf("$skiptoken"),
                                userQ[0]["odata.nextLink"].length);
                        }
                        else {
                            userSkipToken = null;
                        }
                        if (groupQ[0]["odata.nextLink"] != undefined) {
                            groupSkipToken = groupQ[0]["odata.nextLink"]
                                .substring(groupQ[0]["odata.nextLink"].indexOf("$skiptoken"),
                                groupQ[0]["odata.nextLink"].length);
                        }
                        else {
                            groupSkipToken = null;
                        }

                        if (lastDisplayed == null || inputValue != lastDisplayed) {
                            currentResults = [];
github Azure / BatchExplorer / app / services / azure-batch / pool-node-count / pool-node-count.service.ts View on Github external
expand(response => {
                return response["odata.nextLink"] ? this.http.get(response["odata.nextLink"]) : empty();
            }),
            reduce((resourceGroups, response: BatchListResponse) => {
github Azure / BatchExplorer / src / app / services / azure-batch / pool-node-count / pool-node-count.service.ts View on Github external
expand(response => {
                return response["odata.nextLink"] ? this.http.get(response["odata.nextLink"]) : empty();
            }),
            reduce((resourceGroups, response: BatchListResponse) => {

odata

o.js is a isomorphic Odata Javascript library to simplify the request of data. The main goal is to build a standalone, lightweight and easy to understand Odata lib.

MIT
Latest version published 4 months ago

Package Health Score

71 / 100
Full package analysis