2004 IR Help Posted August 22, 2006 Share Posted August 22, 2006 By: Peter van Raamsdonk - peetzer REPORT_SCRIPTLET class references not found 2005-07-01 03:51 hi, I have the following situation: I have assigned my own class to the Report Scriplet in a parameter. e.g in iReport: Parameter name: MYEXPR Parametertype: com.myfunc.HelloWorld Default value expression: $P{REPORT_SCRIPTLET} This parameter-function is used from my field-sources to call a certain method from the assigned class. $P{MYEXPR}.sayHelloworld() This used to work in JasperReports 0.6.1 but in 0.6.8 I only get null values in my report. When I hard-code the class, the function works as normal: (com.myfunc.HelloWorld) $P{REPORT_SCRIPTLET}.sayHelloworld() Is this a bug or do I need some additional code to make this work again... Thanks, P. By: C-Box - c-box RE: REPORT_SCRIPTLET class references not fou 2005-07-01 04:00 You must define your class "com.myfunc.HelloWorld" as report import (in IReport: definde import directives) .... then it should work without casting. just a guess C-Box By: Peter van Raamsdonk - peetzer external class instance method call bug. 2005-07-04 05:29 We did that but, when the function from that class is called the outcome doesn't appear in the report or appear as 'null', the strangest thing is that there is no error generated. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now