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

jonmcano

Members
  • Posts

    12
  • 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 jonmcano

  1. You mean, you don't want to print repeating values? Or actually want to merge cells? Merging cells is not likely possible.
  2. Is the REST endpoint static (url and parameters don't change)? Are you using Jaspersoft Version 7.9.0? If using 7.9 could be possible to use ehcache, but this would really only work if URL request is same and realize the cache is static for some period of time so subsequent calls would interact with same data since it is cached.
  3. example written in bash to copy sample report to the "temp" directory: copy_resp=$(curl -k -X POST "http://localhost:8080/jasperserver-pro/rest_v2/resources/temp?j_username=superuser&j_password=superuser" -H "Accept: application/json" -H "Content-Location: /public/Samples/Reports/01._Geographic_Results_by_Segment_Report") if [[ $upload_resp == *"errorCode"* ]]; then echo "Copy failed" else copy_uri=$(echo ${copy_resp} | jq -r '.uri') echo "Copied report to: "$copy_uri fi
  4. Don't mess with the descriptor. Just upload the new JRXML file using the resources API to the files directory: /public/Samples/Reports/<some report uri>_files/ Or upload your JRXML files separately then reference them in your report descriptors instead of storing local. This way you can simply replace the referenced JRXML file.
  5. Not sure on first issue, but see this for second issue: https://community.jaspersoft.com/questions/1175336/error-jasperservermaintenanceschedulerworker-2131-you-cant-specify-target-table
  6. Studio works without the need of server and should work with latest postgres as long as you have the JDBC drivers referenced. You should be able to open the JRXML files directly in studio. Some older JRXML files may reference XML tags that are no longer valid (i.e. PDF fonts), remove those tags and it should work
  7. Studio works without the need of server and should work with latest postgres as long as you have the JDBC drivers referenced. You should be able to open the JRXML files directly in studio. Some older JRXML files may reference XML tags that are no longer valid (i.e. PDF fonts), remove those tags and it should work.
  8. I write lots of scripts for managing Jaspersoft tasks, thought I should post some here in case they help others. changedomaindatasource.sh copyviaimportexport.sh cleanrepo.ps1 performancetest.ps1 copyviaimportexport_0.sh
  9. This has the javascript that does the actual encryption: <tomcat>/webapps/jasperserver-pro/scripts/runtime_dependencies/js-sdk/src/common/util/encrypter.js
  10. This has the javascript that does the actual encryption: <tomcat>/webapps/jasperserver-pro/scripts/runtime_dependencies/js-sdk/src/common/util/encrypter.js
  11. A customer this week wanted to secure data by making sure the user attribute "inst" was equal to institution_id. The issue is that, using a domain security file, it forced a join into all selects in order to make sure that the user attribute "inst" was equal to institution_id in the institution table. The customer wanted a more efficient way to secure the data based on the attribute without always having to join on institution_id back to the institution table. Here was a novel solution I found that creates a fake table with a single row that has the user attribute so the join is to a 'fake' table with the value of the user attribute as the only value in the table. This makes the domain queries faster since you don't have to join to the institution table now. Export the domain design Locate “<resources>” Add the following just under resources: <resources> <null id="constant_fields_level" datasourceId="AuditDataSource"> <fieldList> <field id="inst_attribute" dataSetExpression="str2int(groovy('Attribute(&quot;inst&quot;)'))" fieldDBName="inst_attribute" type="java.lang.Integer" /> </fieldList> </null> This method creates a fake table that pulls in the “inst” attribute as a field of the 'fake' table and will have the value of the attribute. This negates the need for the institution table to be joined into every select for security. This should improve performance of the domain and allow you to join to this fake table to get the same security effect. Also, this allows the security to be applied without a seperate security file. Other Performance Tips: Measure and Test Test DB Queries with DBTester Do Performance Testing with JMeter Measure Ad Hoc Performance Ad Hoc Set query limits on the "Ad Hoc Options" page Modify the Ad Hoc caching values if your data does not update constantly Tomcat Compress HTTP responses at the Tomcat level Increase the maximum thread count at the Tomcat level Set up a cache filter for Tomcat or JBoss Disable automatic deployment on production servers using Tomcat Database Index columns in the database to speed up domain-based reports Set the fetch size in the jasperreports.properties file to modify the number of rows to fetch JasperReports Configuration Items Modify Virtualizer Settings for Very Large Reports Modify the jasperreports.properties file to disable multi-line data processing Back to JasperReports Server Performance Tips and Tricks
×
×
  • Create New...