Jump to content
We've recently updated our Privacy Statement, available here ×
  • VIDEO: Using Scriptlets inside TIBCO Jaspersoft® Studio and TIBCO JasperReports® Server


    abresci
    • Features: Reports Product: Jaspersoft® Studio

    The video below shows a very simple example of a Scriptlet (custom Java class) used in conjunction with the TIBCO JasperReports® library to generate a custom data value (converting a celsius value from a parameter into farenheit and displaying it in the report output). The demonstration takes place within the TIBCO Jaspersoft® Studio report designer.

    The video also shows how to deploy the report and scriptlet together onto TIBCO JasperReports® Server.


    User Feedback

    Recommended Comments

    The video is nice. Also some detailed steps are provided. However, this may not be enough as JasperSoft Studio is highly buggy tool (not as robust as the older tool iReport); therefore the tutorial still may not work sometimes.

    E.G. 

    Step 1: Once jar is created, we may need to add the jars under the "..apache-tomcatwebappsjasperserver-proWEB-INFlib" directory. 

    Step 2: If scriplet value shows in JasperStudio preview but the report output is not shown in JasperServer, this means there is a bug in 'DETAIL' band. I.E. if you place you scriptler inside 'Detail' band and preview it within  Jaspersoft Studio, it will work just fine. Then publish it in Jasper Server and try to view the report, it will come as empty. This is bug in latest versions of Jaspersoft studio or, Jasper server (not sure which one, but all the TIBCO tools are buggy enough and not well documented. We need to find out resolution through lots of trial and error basis. TIBCO support team is not responsive at all)

    To solve this, place the scriptler in any other band e.g. in the 'Summary' band, then preview it and it will work; then publish and view it in Jasperserver, this will also work.

     

    Link to comment
    Share on other sites



    Guest
    This is now closed for further comments

×
×
  • Create New...