B2B Integration 10.4 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | Enumerate Folder | Summary of Elements in this Folder | wm.tn.enumerate:nth
 
wm.tn.enumerate:nth
Returns the nth page of an enumeration's data. This service also provides some extra information about the server-side query thread.
Input Parameters
id
String The ID of the enumeration. Obtain id from the output of a service in the wm.tn.query folder.
pageNum
String The number of the page to return. (To return the first page, specify 1.)
Output Parameters
resultCount
String The count of items in the result page.
results
Object The resulting page of data. It is a java.util.Vector.
rowsRead
String The number of rows that the query thread has read so far.
pagesRead
String The number of pages that the query thread has read so far.
threadRunning
String The state of the server-side query thread. The following values indicate:
*true - The query thread is still running.
*false - The query thread is completed.
totalPages
String The total number of pages in the result set. While the thread is still running, the service cannot determine this value. Therefore the service returns -1 while the query is running (threadRunning is true). When the query completes, (threadRunning is false), the service provides the total number of pages.
totalRows
String The total number of rows in the result set. While the thread is running, the service cannot determine this value. Therefore, the service returns -1 while the query is running (threadRunning is true). When the query completes, (threadRunning is false), the service provides the total number of rows.
errors
Object A java.util.Vector containing information about errors encountered reading the result set that is represented by this enumeration.

Copyright © 2016- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release