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

asimkin

Members
  • Posts

    196
  • 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 asimkin

  1. Hi,

    for relative dates, you can change week start day in WEB-INFclassesrelativedate.properties file.

    For other cases, week start day is hard-coded in scripts located in bower_componentsjquery-uiuii18n for each locale:

    firstDay: 1

    If you modify the scripts, you have to re-optimize them or configure JasperReports Server to use non-optimized scripts:

    http://community.jaspersoft.com/documentation/jasperreports-server-ultimate-guide/v561/customizing-javascript-files

    Hope, this helps

  2. Hi,
    I'm not familiar with Apex in details but from what I found out, Apex calls JasperReports server reports using HTTP API like

    http://jasperreport-server/jasperserver/flow.html?_flowId=viewReportFlow&reportUnit=/reports/report_name&output=pdf&j_username=jasper_user&j_password=jasper_password&rep_parm=parm_value

    If this is the case, to pass multiple values for a parameter, you should include it multiple time in the call:

    http://jasperreport-server/jasperserver/flow.html?_flowId=viewReportFlow&reportUnit=/reports/report_name&output=pdf&j_username=jasper_user&j_password=jasper_password&rep_parm=parm_value_1&rep_parm=parm_value_2&rep_parm=parm_value_3

     
    Hope this helps
  3. Hi,

    I used JasperReports Server REST_v2 web-service to test your scenario and to pass required organization name as a parameter.


    So, what I did:

    1. In Jaspersoft Studio create new data adapter using 'XML document' type and specify JasperReports Server REST organizations service URL for File field
      and select 'Use the report Xpath expression when filling the report' option: 

      http://localhost:8090/jasperserver-pro/rest_v2/organizations?j_username=superuser&j_password=superuser
       
    2. Create a new report using the new dataadapter with Xpath expression:

      /organizations/organization

      Run the report to verify how it works. It should return all existing organizations in JasperReports Server
       
    3. Create a new parameter with java.lang.String type, for example p_org, and then modify Xpath expression to

      /organizations/organization[id=$P{p_org}]
       
    4. Run the report, enter organization_1 as the parameter value. The report returns 1 record for organization_1
       

    Here you can find a short summary how to use Xpath expression to filter data:

    http://www.w3schools.com/xml/xml_xpath.asp

    Hope this help you to implement your task

  4. Unfortunately, HTML5 Pie chart has no built-in properties to limit the number of slices.

    You can try the following solution:

     - create a report variable that calculates summary value (Countries freight for sample Orders table)
     - add Chart Category expression to group countries with percentage value less than a fixed value (to say less than 5% of total summary value) to Others slice: 
     
    IF((SUM($F{FREIGHT})/$V{V_TOTAL})>0.05,$F{SHIPCOUNTRY},"Others") 
     
  5. Hi,

    it looks like using Scriptlet with the report may help you to implement your requirements. A scriptlet is a Java class used to execute special elaborations during report generation. A scriptlet exposes a set of methods that are invoked by the reporting engine when a particular event occurs, such as the creation of a new page or the end of processing a detail row.

    You should use beforeReportInit() method to call the Oracle PL/SQL code before report initialization.

    You can find more information about scriptlets in iReport Ultimate Guide

    http://community.jaspersoft.com/system/files/documentation/ireport-ultimate-guide.pdf

    Also, there is a great external article

    http://www.tutorialspoint.com/jasper_reports/jasper_report_scriptlets.htm

×
×
  • Create New...