Jump to content
We've recently updated our Privacy Statement, available here ×

kislay22

Members
  • Posts

    1
  • Joined

  • Last visited

kislay22's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare

Recent Badges

0

Reputation

  1. kislay22

    scriptlet

    Hi, I am trying to add a scriptlet to my report . I added tools.jar to my library . The report is compiled , but on executing it (using an active connection) , I am encountering an error . The name of my report is transactionReportMT , that of the scriptlet is transactionReportMTScriptlet and the method involved is testMethod() This the error I get - java.lang.NoSuchMethodError : transactionReportMTScriptlet.testMethod(I)Ljava/lang/String; Code:// Code for the method . This method is decalred just after the constructor of the //scriptlet classpublic java.lang.String testMethod(int i) throws JRScriptletException{ Integer var = (Integer) this.getFieldValue("format"); if (var.intValue()==1) return "Type 1"; else return "Type 2";}
×
×
  • Create New...