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

lucianc

Members
  • Posts

    5,609
  • Joined

  • Last visited

  • Days Won

    3

Community Answers

  1. lucianc's post in How to use Jasper Properties-Configuration was marked as the answer   
    In JasperServer, if you want to set the property globally you would edit WEB-INF/classes/jasperreports.properties and add the property there.
    HTH,
    Lucian
  2. lucianc's post in JasperReports and PDF Forms was marked as the answer   
    As far as I know this feature is not targetted for the upcoming releases.  You can vote for it at http://jasperforge.org/projects/jasperreports/tracker/view.php?id=4185
    Regards,
    Lucian
  3. lucianc's post in Open Source License was marked as the answer   
    JasperReports is offered under GNU LGPL v3.  That's a permissive license, and you can distribute JR in commercial applications.  Check the license text in the JR distribution for the details.
    Regards,
    Lucian
  4. lucianc's post in Joda Time Date in JasperReports? was marked as the answer   
    JR text fields do not know how to display org.joda.time.DataTime objects, so you have to explicitly convert them to one of the known types.  You can do $F{..}.toDate() in the text field expression if you don't want to change your objects.
    Regards,
    Lucian
  5. lucianc's post in How can I get JasperReports' version at runtime? was marked as the answer   
    See here.
    HTH,
    Lucian
  6. lucianc's post in Which JS version I have? was marked as the answer   
    Take a look under $TOMCAT/webapps/jasperserver/WEB-INF/lib and you'll see a list of jasperserver-something-x.y.z.jar files.  x.y.z. is the JS version.
    HTH,
    Lucian
  7. lucianc's post in default jasperadmin user in login form was marked as the answer   
    The user and password fields are automatically filled by your browser. Consult the browser documentation to learn how to inhibit this feature.
     
    In Firefox, you need to go to Edit/Preferences/Security/Show Passwords and remove the saved password for JasperServer. If the browser offers again to save the password for the JS login page, say "Never for this page".
     
    HTH,
    Lucian
  8. lucianc's post in Repeatable subreport; datasource as report field. was marked as the answer   
    The following line in the master report causes the subreport data source mixup:
    Code: [/code]

    Could you change it to
    Code: [/code] and see whether the issue is fixed?
    Directly passing $P{REPORT_PARAMETERS_MAP} as subreport parameters map has been dangerous because the parameters map is altered by the subreport. Cloning the map should fix the issue as the map would no longer be shared by several subreports.
    Regards,
    Lucian
  9. lucianc's post in Scheduler queue was marked as the answer   
    You may also want to take a look at the org.quartz.jobStore.misfireThreshold property (Quartz documentation here).
     
    Regards,
    Lucian
  10. lucianc's post in Scheduling Interface Implemented? was marked as the answer   
    The main report scheduling interface is com.jaspersoft.jasperserver.api.engine.scheduling.service.ReportSchedulingService, and the built-in implementation is com.jaspersoft.jasperserver.api.engine.scheduling.ReportSchedulingFacade.
     
    ReportJobsQuartzScheduler is a (sub) component which implements the Quartz job management used by ReportSchedulingFacade.
     
    HTH,
    Lucian
  11. lucianc's post in export to pdf creates balnk page was marked as the answer   
    PDF is a binary file format (and not a text file format), so converting the data to a String corrupts it. You need to keep the binary data as is, i.e. as a byte array.
     
    HTH,
    Lucian
  12. lucianc's post in package net.sf.jasperreports.engine does not exist was marked as the answer   
    See this FAQ.
     
    HTH,
    Lucian
  13. lucianc's post in Reusing a datasorce in mutiple subreports was marked as the answer   
    a. Reports that embed SQL queries use JRResultSetDataSource as data source, and this type is not (currenlty) rewindable. If you think rewindable SQL data sources would be useful, please post a feature request for this.
     
    You can also achieve this outside JR by writing a custom SQL query executer that uses TYPE_SCROLL_INSENSITIVE statements to create rewindable result set data sources.
     
    If the result set is small, an alternative to this is to execute the result set before starting to fill the report, record all the data returned by the result set in an in-memory structure and then use the in-memory data as data source for the subreports.
     
    b. You could, for instance, use the auto rewindable data source wrapper posted here.
     
    HTH,
    Lucian
  14. lucianc's post in Problem/bug with external users & Postgres was marked as the answer   
    Setting defaultAutoCommit to true is not a good idea since it would inhibit rollback on other scenarios, and you might end up with a inconsistent JS metadata.
     
    I think the proper fix for this is to add

    Code:
    <prop key="maintainInternalUser">PROPAGATION_REQUIRED</prop>
    to the transactionAttributes property of the userAuthorityService bean found in WEB-INF/applicationContext.xml.
     
    Could you try this and let us know whether it works?
     
    Regards,
    Lucian
  15. lucianc's post in Negative numeric values returned from query was marked as the answer   
    JasperReports' processing of the query string only consists of replacing parameter placeholders by prepared statement parameters. Therefore I suspect the problem lies somewhere in the JDBC driver. You could run your query via a JDBC prepared statement and see whether the issue is replicated.
     
    If you think detecting comments in the SQL would be usefull, you can log a feature request for this. However, SQL parsing is not something we are keen on doing in JR (detecting single line comments is not trivial as the double dash could also appear in String literals and so on).
     
    Regards,
    Lucian
  16. lucianc's post in deserialize jasperprint = NoClassDefFoundError was marked as the answer   
    When you have a chart in a report, the generated JasperPrint objects includes a JRRenderable instance that contains the data required by JFreeChart to render the chart. Hence JFreeChart is needed at report render/export time, not only at fill time.
     
    It's not a bug, this is how the chart functionality was designed. This approach enables vector rendering for report charts; if pixel image data would be kept for the charts they would look worse when rendered.
     
    If you don't want JFreeChart when rendering the filled report, I guess there are ways to process the report and replace the JFreeChart renderers with pixel images.
     
    HTH,
    Lucian
  17. lucianc's post in no data on all but first subreport was marked as the answer   
    Not exactly sure how to help you. As you correctly assumed, filling a subreport exhausts the data source passed to it.
     
    Bearing this in mind, you can either

    provide a fresh data source each time the subreport gets filled, i.e. don't reuse the data source across subreport instantiations
    if your subreport is rewindable (i.e. it implements JRRewindableDataSource), make sure that you rewind the data source before/after you use it once. You can do this, for instance, in one of the scriptlet's methods (like beforeDetailEval()).
    combine the two previous approaches by writing a rewindable data source wrapper that rewinds a data source and delegates all the calls to it:
    Code:
    public class RewindableDSWrapper implements JRRewindableDataSource {
    private final JRRewindableDataSource ds;
    public RewindableDSWrapper(JRRewindableDataSource ds) {
    this.ds = ds;
    this.ds.moveFirst();
    }
    public boolean next() throws JRException {
    return ds.next();
    }
    public Object getFieldValue(JRField jrField) throws JRException {
    return ds.getFieldValue(jrField);
    }
    public void moveFirst() throws JRException {
    ds.moveFirst();
    }
    }
    -----
    <subreport>
    <dataSourceExpression>new RewindableDSWrapper(..subreport ds..)</dataSourceExpression>
    </subreport>
    [/ul] 
    HTH,
    Lucian
    Post edited by: lucianc, at: 2007/01/10 12:38
×
×
  • Create New...