0 Replies Latest reply on Mar 3, 2013 2:30 AM by 985007

    Problem using updateReportDefinition on ReportService

    985007
      Hello Folks.

      I'm calliing the web service from Java. When I call updateReportDefinition on an existing report i get the value "true" as the return, but it does not appear to update the values, except for the value for "setDiagnostics()/isDiagnostics()".

      I pull the ReportDefinition from the ReportService, change a few values, and then update it via the service.

      Then when I pull it again it has all the original values, except for the isDiagnostics() value which I set.

      My goal here is to change the value for DefaultOutputFormat. Any suggestions are welcome.

      -Vik


      Sample Code and Output follow:


      Code:

      ...
                          repdef = reportService
                          .getReportDefinition(fullReportName, getUserName(), getUserPass());
                          System.out.println("1 repdef.isDiagnostics() : " + repdef.isDiagnostics());
                          System.out.println("1 repdef.getReportDescription() : " + repdef.getReportDescription());
                          System.out.println("1 repdef.getDefaultOutputFormat() : " + repdef.getDefaultOutputFormat());
                          repdef.setDefaultOutputFormat("html");
                          repdef.setReportDescription("Report Description for " + repdef.getReportName());
                          repdef.setDiagnostics(true);
                          System.out.println("2 repdef.isDiagnostics() : " + repdef.isDiagnostics());
                          System.out.println("2 repdef.getReportDescription() : " + repdef.getReportDescription());
                          System.out.println("2 repdef.getDefaultOutputFormat() : " + repdef.getDefaultOutputFormat());
                          boolean retval = reportService
                          .updateReportDefinition(fullReportName, repdef, getUserName(), getUserPass());
                          System.out.println("* updateReportDefinition() : " + retval);
                          System.out.println("3 repdef.isDiagnostics() : " + repdef.isDiagnostics());
                          System.out.println("3 repdef.getReportDescription() : " + repdef.getReportDescription());
                          System.out.println("3 repdef.getDefaultOutputFormat() : " + repdef.getDefaultOutputFormat());
                          repdef = reportService
                          .getReportDefinition(fullReportName, getUserName(), getUserPass());
                          System.out.println("4 repdef.isDiagnostics() : " + repdef.isDiagnostics());
                          System.out.println("4 repdef.getReportDescription() : " + repdef.getReportDescription());
                          System.out.println("4 repdef.getDefaultOutputFormat() : " + repdef.getDefaultOutputFormat());
      ...


      Output:

      1 repdef.isDiagnostics() : false
      1 repdef.getReportDescription() : null
      1 repdef.getDefaultOutputFormat() : analyze
      2 repdef.isDiagnostics() : true
      2 repdef.getReportDescription() : Report Description for UMLOW__Configuration_Tables_RPT1_same_prompt_
      2 repdef.getDefaultOutputFormat() : html
      * updateReportDefinition() : true
      3 repdef.isDiagnostics() : true
      3 repdef.getReportDescription() : Report Description for UMLOW__Configuration_Tables_RPT1_same_prompt_
      3 repdef.getDefaultOutputFormat() : html
      4 repdef.isDiagnostics() : true
      4 repdef.getReportDescription() : null
      4 repdef.getDefaultOutputFormat() : analyze