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

sanbez

Members
  • Posts

    296
  • 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

Posts posted by sanbez

  1. 1.
    >> Result is fine but with data have many record is result fine yet

    Is it means that all fine? "is fine but... fine yet" : why "but" if all fine?

    2.
    >> new BigDecimal.setScale(2,ROUND_HULF_UP)
    This operation always return 20.05  not 20.0499999999997
    Check your report. What are you show in report? Are you sure that it is result of setScale?

  2. Try to use BigDecimal.setScale instead Math.round
    For example as here:

      public static double round(double value, int decimalPlace) {
          return new BigDecimal(value).setScale(decimalPlace, BigDecimal.ROUND_HALF_UP).doubleValue();
      }

    May be it solve your problem.
    Welcome to the world of java-computing :))


     

  3. Nobody can't help you without information about problem. "but it is showing me null" - it is not enough to determine the error. Create new answer with description of problem. SHOW YOUR JRXML, define database (is it Oracle? Postgress, MSSQL? or is it JRBeanCollectionDataSource?...). Show version iReport (JasperServer?)

    After that you get a chance to get answer

  4. iReport is not a database.

    It's only dispaly existing information.

    You lost information about previous day... In any moment you have info about only one day.

    I think about two ways to solve problem:


    1. Change script on server with aim to save information for three last days. May be add date field in table with type of date (for save day: 13.05.2013, 14.05.2013, ...). And change report.jrxml for using this date.
     
    or
     
    2. Make every day export data from existing report into csv (or excel? other file?). And make second report2 with this data source. But in this case you must to do:
    a) add system date (for example) to report as a parameter (or variable)
    b) aggregate data in one file (?)
    c) design report2.jrxml 
     
    The first way is easier  (imho)

    Maybe someone else will give advice...

  5. In linechart one axis (low for example) - is scale of Date (or Time?). In other Axis (Left) - scale of values. How you want to fit dates 13.05.2013, 14.05.2013, 15.05.2013 in one low axis??? This dates are located one after another on low axis...
  6. I am not sure, but try to make this:
    1. Make alias for second (may be third) field: select ('PREGUNTA 1') as preguntas, pregunta_1 as pregunta_1, count(*) as cnt from form_app_001 union all ...
    2. Set sort field preguntas and pregunta_1 in iReport ("Sort options" button in iReport)

    HTH

     

  7. It's very strange. May be you have another not empty fields in left or right side near pies? And this prevents to reducing space. It's need to see your jrxml... Sorry, my work time is over. I am can to participate in forum only 13.05.2013.
  8. Set in main report properties for subreport:
    Connection Type = Use a datasource expression
    Data Source Expression = (like this:)new JRBeanCollectionDataSource(myCollection)

    Check that you don't put DataSourceExpression into "ConnectionType" (see yuor error):
    net.sf.jasperreports.engine.data.JRBeanCollectionDataSource cannot be cast to java.sql.Connection



     

×
×
  • Create New...