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

Scott Andersen

Jaspersoft Staff
  • Posts

    129
  • 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 Scott Andersen

  1. Both answers are yes, this can be done. Are you using Jaspersoft Studio? Or is this using Ad Hoc?
  2. The “Report Execution” link normally displays the target report in JasperReports Server’s interactive viewer UI. If instead you want the target to be displayed in your UI, you can use visualize.js to capture the link event coming from the Studio report and redirect it to the appropriate report. When implementing drill down reporting in visualize.js, you must map the parameters from the captured event link (link.parameters) to the targeted report’s parameters. These link parameters are defined when creating the hyperlink in Jaspersoft Studio. Typically the mapping of parameters is very specific between the source-master and target-slave reports. But what if there are different links coming from the report? Rather than implementing complex logic in the link event handler, another approach is to draw both the target report url and the parameters from the link and generate the parameter mapping dynamically. Some assumptions: The parameter names in the master parameter mapping (in the Hyperlink properties) match the input parameters of the slave report. This example uses the following “Sample” reports provided in JasperReports Server deployment. “13. Top Fives Report” – this report has links to two different reports:“09. Customer Details Report” – linked to from the “Customers” list, passing the customerId.“12. {Promotions Detail Report” – Linked from the “Promotions” list, passing the promotionId.Within the embedded-in web page javascript, do the following: Define a “createReport” function, passing in the report path and the report parameters. Define a function to format the parameter list based on the passed parameter JSON. The “link.parameters” cannot be used directly, since the visualize.js parameter requires values be included in an array, and Studio links map content differently depending on the type of parameter passed (string vs collection). That is why a “buildParms” function is required. Populate the <div> with the initial report. Use the “createReport” function in the link event handler to create the target report, based on the information from the link.This example provides a simple implementation of a dynamic parameter generation in visualize.js. Sample drilldown web page is attached below. drilldownreport.html drilldownreport.html_0.txt
  3. The file data source / adapter allows passing of parameters to the URL. See the Jaspersoft Studio User Guide, Section 10.9.2 (for JSON) or 10.7 (for XML formatted data). In the server refer to the JasperReports Server Administrator Guide, Chapter 4.12 Alternatively you can use the Autonomous Rest JDBC data adapter
  4. Release 8.1 of Jaspersoft now supports report bursting, See this WIKI article:: https://community.jaspersoft.com/wiki/report-bursting-using-jaspersoft-studio-81
  5. Release 8.1 of Jaspersoft now supports report bursting, See this WIKI article:: https://community.jaspersoft.com/wiki/report-bursting-using-jaspersoft-studio-81
  6. Release 8.1 of Jaspersoft now supports report bursting, See this WIKI article:: https://community.jaspersoft.com/wiki/report-bursting-using-jaspersoft-studio-81
  7. Release 8.1 now supports report bursting, See this WIKI article:: https://community.jaspersoft.com/wiki/report-bursting-using-jaspersoft-studio-81
  8. This is called "report bursting" and is now available in release 8.1 of Jaspersoft (Studio and Server working together), See this WIKI article:: https://community.jaspersoft.com/wiki/report-bursting-using-jaspersoft-studio-81
  9. Release 8.1 now supports report bursting, See this WIKI article:: https://community.jaspersoft.com/wiki/report-bursting-using-jaspersoft-studio-81
  10. Release 8.1 now supports report bursting, See this WIKI article:: https://community.jaspersoft.com/wiki/report-bursting-using-jaspersoft-studio-81
  11. Release 8.1 now supports report bursting, See this WIKI article:: https://community.jaspersoft.com/wiki/report-bursting-using-jaspersoft-studio-81
  12. Report bursting is the process of running a report once and then dividing the results for recipients who each view a subset of the data. In the past, report bursting in Jaspersoft has been accomplished using external tools interfacing with Jaspersoft’s REST services. With release 8.1, Jaspersoft introduces report bursting capability into Jaspersoft, using existing features of Jaspersoft Studio (scriptlets) and JasperReports Server (scheduler). This article walks through the creation of a bursting job. Assumptions: The target or “bursted’ report exists, and requires an input parameter that identifies what the report is for. In the example I used the “6. Profit Detail” report provided in the JasperReports Server Samples, which shows the Profit based on ProductFamily.Create a “bursting” report. This is the report that will drive the report bursting process.The report does not require anything to be displayed; however, putting together a simple display can record what detailed reports were generated.Write a query that returns the values required for bursting the report. This may include: The id or values that will control the generation of individual reports. (required)Emails, locations, or other criteria to uniquely identify the results and the distribution of the results.Add the “Bursting Scriptlet” to the report by right clicking on “Scriptlets” in the Outline of the report and selecting “Create Bursting Scriptlet”. Edit the bursting scriptlet settings using the wizard. To access the wizard, right click on the Bursting Scriptlet in the outline and selecting "Edit Bursting Properties". There are several sections that can be filled in to control the bursting of the report. If you notice, the settings have corresponding settings in the JRS Scheduler UI. Check the Scheduler documentation in the JasperReports Server User Guide for details of what these various options do.Note that multiple settings have “Expression Editors” associated with them. These can use values from your master query to control the bursting. The following are the minimum options that must be entered to create a basic bursting job. Essential Options: Server Profile – This is the connection to the server (defined in the “Repository Browser”) that will be used to populate various lists in the wizard.Enabled – this defaults to “false” so you can test the basic execution of the report. Changing this to “true” will cause the bursting to execute when you preview the report.Job Label – The name of the job that will appear in the Schedule manager.Job Description – The description of the job that will appear in the Schedule manager.Report UI – The path to the report that will be bursted. In our scenario we will be executing the “6. Profit Detail Report” in the server. You can use the folder browser to connect to the JasperReports Server identified previously to navigate to the report, or you directly enter the report path.Server data adapter - This is optional but needed if you want to test the bursting job from Jaspersoft Studio. It is an exported JR data adapter file and can be created by following the additional instructions below. Output File OptionsFile name - the base file name for the individual results (do not use spaces or dots in the name) Description – The description of the result (if the result is saved into JRS repository).Formats – the format of the result filesOverwrite Files - if the file name of the existing file is the same - defaults to trueSequential File Name by Timestamp - defaults to false. If true, provide a "Timestamp Pattern".Output to repository – send the results to the repository.Repository Folder URI – the location in the repository where the results are saved. You can use the folder browser to connect to the JasperReports Server identified previously to navigate to the folder, or you directly enter the folder path.Additional options can be added for FTP Options, Job Run Notifications, and Job Status Notifications. Next, connect the parameters in the bursted report with associated values from the bursting report's query: Click on the “Parameters” tab and enter the parameters needed by the bursted report.Parameter name – the name of the parameter as defined in the bursted reportParameter value – the value to be sent to the bursted report. Using the Expression Editor you can tie this to a field coming from the bursting report’s query.Once created, the report can be tested from Studio (if a server data adapter was provided), or published and executed on the server. Creating a JasperReports Server data adapter file.Create a Data Adapter Export to your workspace. Reference that file in the Bursting wizard.
  13. Check out the Dr. Jasper video on the subject: Also, CData has a jdbc adapter that you may be able to use: https://www.cdata.com/kb/tech/graphql-jdbc-jasperserver.rst
  14. Here is a WIKI article that may help: https://community.jaspersoft.com/wiki/jaspersoft-report-using-two-separate-data-sources
  15. Here is a WIKI article that may help: https://community.jaspersoft.com/wiki/jaspersoft-report-using-two-separate-data-sources
  16. Here is a WIKI article that my provide a possible solution: https://community.jaspersoft.com/wiki/jaspersoft-report-using-two-separate-data-sources
  17. Here is a WIKI article that my provide a possible solution: https://community.jaspersoft.com/wiki/jaspersoft-report-using-two-separate-data-sources
  18. Here is a WIKI article that my provide a possible solution: https://community.jaspersoft.com/wiki/jaspersoft-report-using-two-separate-data-sources
  19. Two ways to do this: - use the server and the REST API - code it using the JasperReports Library code.
  20. JasperReports Server does not have that concurrency; howeever, the number of available threads is set at the app server / machgine level.
  21. You need to enable the JSON file data source in the server. https://community.jaspersoft.com/documentation/tibco-jasperreports-server-administrator-guide/v790/file-data-sources With regards to the error, check the log file at .../WEB-INF/logs
  22. Typically a data source is used in a chart, althopugh in this case you may need eiter a separate dataset / query. Rather than aggregating on the report, use the field as the measure. Make sure no aggregation is being performed at either the group or chart level. Alternatively, use a variable to control the aggregation (reset, etc.)
×
×
  • Create New...