Wednesday, 21 April 2010

Web Service to run reports


NextReports Designer uses a web service to publish / download reports to a NextReports server.

To integrate reports in a proprietary  application where we want to generate some reports with specific parameters from that application, we created a new report web service.

This will allow for a very simple integration with a NextReports server :

RunReportMetaData runReportMetaData = new RunReportMetaData();

runReportMetaData.setReportId(reportId);
runReportMetaData.setFormat(HTML_FORMAT);

Map parametersValues = new HashMap();
parametersValues.put("Id", 2);
runReportMetaData.setParametersValues(parametersValues);

try {
    String url = webService.runReport(runReportMetaData);
} catch (WebServiceException e) {          
    showError(e);
}

2 comments:

  1. มีวิธีแสดงreport โดยไม่ต้องกดrun ที่ nextreport server ให้Report Showโดยมีการส่งparameter
    ขอบคุณล่วงหน้าครับ

    ReplyDelete
  2. IEEE Final Year Project centers make amazing deep learning final year projects ideas for final year students Final Year Projects for CSE to training and develop their deep learning experience and talents.

    IEEE Final Year projects Project Centers in India are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation.

    corporate training in chennai corporate training in chennai

    corporate training companies in india corporate training companies in india

    corporate training companies in chennai corporate training companies in chennai

    I have read your blog its very attractive and impressive. I like it your blog. Digital Marketing Company in Chennai

    ReplyDelete