Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi, im new at talend.i want to try looping data extraction via tRESTClient.the condition are looping from page 1, until page that has no responses.i try like this
my configuration ontloop1 = loop type : while, condition : context.hasMoreData (it set true when there are responses present, default : TRUE)tjava5 = if (row6.ConsentStatus != null && !row6.ConsentStatus.isEmpty()) {context.currentPage += 1; // Increment page number} else {context.hasMoreData = false; // Stop the loop}idk why it always stop at 1st iteration, and context.hasMoreData always change into false after i run the logic on tjava.can someone help me.thanks
Hello Kandu,
At first glance like this, try replacing the tJava_5 with a tJavarow
Best Regards