ossiejhmoore

OT WebServices Run LiveReport Example

Jan 19th, 2016
390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.70 KB | None | 0 0
  1.     private List<RowValue> getNextPageOfChildrenFromLiveReport(DocumentManagement docClient, Integer reportId, Integer rootId, Integer priorId) {
  2.         final IntegerValue ancestor = new IntegerValue();
  3.         ancestor.getValues().add(rootId);
  4.  
  5.         final IntegerValue priorDataId = new IntegerValue();
  6.         priorDataId.getValues().add(priorId);
  7.  
  8.         final List<RowValue> rows = new ArrayList<RowValue>();
  9.         final List<DataValue> values = new ArrayList<DataValue>();
  10.         values.add(ancestor);
  11.         values.add(priorDataId);
  12.  
  13.         final ReportResult result = docClient.runReport(reportId, values);
  14.         rows.addAll(result.getContents());
  15.        
  16.         return rows;
  17.     }
Add Comment
Please, Sign In to add comment