2004 IR Help Posted September 2, 2006 Share Posted September 2, 2006 By: supportsib - supportsib scriptlet 2004-07-14 08:59 what wrong i made with this ound???:?double required:?java.lang.Double ? ???????????????value?=?(java.lang.Double)(((smutils.Scriptlet)((dori.jasper.engine.JRAbstractScriptlet)parameter_REPORT_SCRIPTLET.getValue())).amount()); public double amount()throws JRScriptletException { double result; result=1000; return result; } By: Primo Chen - primochen RE: scriptlet 2004-07-15 23:10 only Integer Double ...Object could be return try to change as public Double amount()throws JRScriptletException { double result; result=1000; return new Double(result); } By: supportsib - supportsib RE: scriptlet 2004-07-16 23:18 it makes classcastexception By: Primo Chen - primochen RE: scriptlet 2004-07-18 18:40 check Textfield Expression Class Did you choice correct Double? I have ever return String that works By: supportsib - supportsib RE: scriptlet 2004-07-18 23:28 yes,its java.lang.Double By: Primo Chen - primochen RE: scriptlet 2004-07-19 01:53 I write a class without extend anything package com.aaa.spa.util; public class spajViewHelp { public static Double getDouble() throws Exception { return new Double(1000); } and textfield expression is com.aaa.spa.util.spajViewHelp.getDouble() in my report I can show 1000 so check again or find someone to read your code hope you find the bug soon! 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