Hi all, I am having trouble using variables in a scriptlet. I had it working some days ago, but now it stopped working again, without anything changed !? I set the variable like this: public void beforeReportInit() throws JRScriptletException { setVariableValue("temp",new SimpleDateFormat("yyyy-MM-dd").format(new Date())); setVariableValue("month_last_day",new SimpleDateFormat("yyyy-MM-dd").format(new Date())); System.out.println("temp variable: " + (java.lang.String)getVariableValue("temp")); System.out.println("month_last_day variable: " + (java.lang.String)getVariableValue("month_last_day")); Both variables are Calculation type system. What might be worng ? Is there some other settings somewhere ? Even the println prints the value correctly, but null values are in the report fields as $V{month_last_day} and $V{temp}. Ireport version 2.0.2 I am quite lost now, please help ASAP. BR. Mike