Created
February 14, 2021 02:00
-
-
Save floverfelt/1249a5f9e362260e7388daa6904a2006 to your computer and use it in GitHub Desktop.
Fetch grid report data as json.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WebReportSource reportSource = adminSession.getFactory().getReportSource(); | |
WebReportInstance webReportInstance = reportSource.getNewInstance("the-original-grid-id"); | |
webReportInstance.setExecutionMode(EnumWebReportExecutionModes.REPORT_MODE_PLAIN_TEXT); | |
webReportInstance.getExportSettings().setMode(EnumDSSXMLExportFormat.DssXmlExportJSON); | |
webReportInstance.setAsync(false); | |
webReportInstance.pollStatus(); | |
System.out.println(webReportInstance.getResultsAsJSON()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment