Jump to content
Changes to the Jaspersoft community edition download ×

debby.st.chui

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

Downloads

Everything posted by debby.st.chui

  1. I have a String parameter "2012231211" and want to convert as Long data type for the SQL statement. I had tried add a new parameter and set the default value expression as ($P{field}.matches("[0-9]+") ? new java.lang.Long($P{field}) : new java.lang.Long(0)) However, I got the following errors. "Error filling print... java.lang.String cannot be cast to java.lang.Long" How can I convert the String to Long ? p.s I cannot set the parameter as Long data type.
×
×
  • Create New...