Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

XMLHttpRequest (XHR) within Pentaho Data Integration

$
0
0
I'm using the step "REST Client" to call a web service that returns the initial data in json format.
The number of the returned records is limited to 50.

Code:

{

Therefore I have to read the nested property "nextPage" within the json object to have access to the next 50 records.
I tried to work with a XMLHttpRequest in Javascript but it failed with the following log message "ReferenceError: "XMLHttpRequest" is not defined".

Code:

var jsonObject = JSON.parse(jsonAllJobsStream.getString());
var nextPage = jsonObject.metadata.links.nextPage;
var xmlhttp = new XMLHttpRequest();

So how can I do a XMLHttpRequest within Pentaho Data Integration?
Or is there any other way to follow nested links within a json stream?

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>