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

kislay22

Members
  • Posts

    1
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Everything posted by kislay22

  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...