ossiejhmoore icon

OT WebServices Run LiveReport Example

ossiejhmoore | PRO | 01/19/16 07:31:52 PM UTC | 0 ⭐ | 383 👁️ | Never ⏰ | []
Java |

700 B

|

None

|

0 👍

/

0 👎

    private List<RowValue> getNextPageOfChildrenFromLiveReport(DocumentManagement docClient, Integer reportId, Integer rootId, Integer priorId) {
        final IntegerValue ancestor = new IntegerValue();
        ancestor.getValues().add(rootId);
 
        final IntegerValue priorDataId = new IntegerValue();
        priorDataId.getValues().add(priorId);
 
        final List<RowValue> rows = new ArrayList<RowValue>();
        final List<DataValue> values = new ArrayList<DataValue>();
        values.add(ancestor);
        values.add(priorDataId);
 
        final ReportResult result = docClient.runReport(reportId, values);
        rows.addAll(result.getContents());
        
        return rows;
    }

Comments