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

dhoppmann

Members
  • Posts

    19
  • Joined

  • Last visited

dhoppmann's Achievements

  1. You should specify a RoundingMode in the divide function. I.e., try: (($V{Quote_Price_Total}.subtract( $V{UPC_Total} )).divide($V{Quote_Price_Total}, RoundingMode.ROUND_UP))
  2. I looked at Studio again, and I was mistaken about the application needing to be restarted. You just have to select an appropriate element to display relevant toolbars. However, there aren't any text-alignment toolbars available in 5.5 or prior releases. If you need this feature, get the 5.6 beta release here: http://sourceforge.net/projects/jasperstudio/files/beta-release/packages/
  3. If you click on Campo di Testo (Text Field) in the Properties tab in your screenshot, the alignment options are available there. There aren't any text-alignment toolbars available in 5.5 or prior releases. If you need this feature, get the 5.6 beta release here: http://sourceforge.net/projects/jasperstudio/files/beta-release/packages/
  4. A new feature added to JasperServer 5.1 is the ability to create a calendar that can be referenced as a list of dates on which to exclude sending scheduled reports. For example, you may have a report of Cost of Labor data that is scheduled to be sent at the end of day at a time after your employees are clocked out. On any business day, you might want to compare your cost of labor to the sales made that day. However, you may not want to receive the email on closed days. Currently, the ability to modify exclusion calendars is only available using the JasperServer REST 2.0 services. The API reference for this ability is located on the Jaspersoft Community site: Adding or Updating an Exclusion Calendar So, using the Firefox plugin Poster, I made a PUT request to my local instance of JasperServer to add a calendar named ChristmasHolidays of Christmas and Christmas Eve dates for the next couple of years: http://davidhoppmann.com/toto/wp-content/uploads/2013/12/jasperserver-add-exclusion-calendar-246x300.png After clicking the POST button to submit the calendar to JasperServer, I receive an OK 200 Response: http://davidhoppmann.com/toto/wp-content/uploads/2013/12/jasperserver-add-exclusion-calendar-poster-response-300x287.png Now, when I attempt to schedule a report, my ChristmasHolidays displays as an option to exclude report scheduling against when a reoccurring schedule type is selected: http://davidhoppmann.com/toto/wp-content/uploads/2013/12/jasperserver-add-exclusion-calendar-results-300x269.png This feature is definitely more useful when including all of a businesses holidays because currently multiple calendars cannot be selected for exclusion when scheduling a report. Hopefully Jaspersoft will incorporate custom calendars in other parts of the application – specifically the ability to use custom calendars as an inclusion option, the ability to select multiple calendars for inclusion/exclusion, and integration into the date selector input controls within reports. If you have any other ideas or good uses for this feature, please comment below! The post Limiting Scheduled Reports Against Holiday Dates in JasperServer appeared first on DavidHoppmann.com.
  5. Note: I am referencing the 5.5 versions of JasperServer, iReport, and JasperStudio in this post.Since HTML5 Charts have been added to JasperReports in its 5.0 release, a slew of new graphing possibilities have been made available. Some of the abilities to customize these charts have not been implemented in the graphical reporting tools iReport and JasperStudio in the most intuitive way. Details on how to customize them have not been easy to find either. Here is an example of an HTML5 Stacked Bar Chart from the demo data in a report displayed in JasperServer: http://davidhoppmann.com/toto/wp-content/uploads/2013/11/Customizing-Tooltips-in-JasperReports-HTML5-Chart-Components.png Displaying the Category (“CA”), Series (“Male”), and Measure (“81,541.81”) when hovering over a chart measure is sufficient in most cases, but there are often more datapoints that would be nice to have displayed in the tooltip. For example, a percentage across the category the would be a great addition. To add this, right click on the chart element in iReport or JasperStudio and select “Edit Chart Properties,” the button indicated below: http://davidhoppmann.com/toto/wp-content/uploads/2013/11/Customizing_Tooltips_in_JasperReports_HTML5_Chart_Components_Chart_Properties1-298x300.png Here, you can add custom properties. You should see a list of currently set properties that were either predefined, or customized using the properties panel in iReport or JasperStudio. You can edit these properties by double-clicking a property to bring up an expression editor. To customize the tooltip, you need to click the add button as seen below: http://davidhoppmann.com/toto/wp-content/uploads/2013/11/Customizing_Tooltips_in_JasperReports_HTML5_Chart_Components_Chart_Properties_Advanced-300x297.png Now an expression editor will display. In this example, we want to show what we are currently displaying with an additional percentage amount. Here, we are going to set the “Property Name” as tooltip.pointFormat, check the “Use an expression” checkbox, and type the below string as seen in the image that follows: "<span style=\"color:{series.color}\">{series.name}</span><br />Sales: {point.y} <br />% of Sales: {point.percentage}"http://davidhoppmann.com/toto/wp-content/uploads/2013/11/Customizing_Tooltips_in_JasperReports_HTML5_Chart_Components_Chart_Properties_Advanced_Expression.png Click OK on the expression editor window. Click OK on the HTML5 Charts properties window. You should be able to run the report now (or export to JasperServer and display) to have a result like this: http://davidhoppmann.com/toto/wp-content/uploads/2013/11/Customizing_Tooltips_in_JasperReports_HTML5_Chart_Components_Result-1.png This is essentially what we wanted, but the precision of the percentage decimal value is not what we were looking for. To fix this, go through the process of adding another HTML5 Chart property. Set tooltip.percentageDecimals to “2” to achieve the result below: http://davidhoppmann.com/toto/wp-content/uploads/2013/11/Customizing_Tooltips_in_JasperReports_HTML5_Chart_Components_Result-2.png Since HTML5 Charts use the HighCharts library, I recommend viewing their API documentation to uncover more potential options in customizing tooltips in HTML5 Charts in JasperReports. The post Customizing Tooltips in JasperReports HTML5 Chart Components appeared first on DavidHoppmann.com.
  6. I removed "repo:" from the beginning of the hyperlink _report parameter and now the target report's hyperlinks display. Apparently that format isn't required anymore?
  7. No - your best bet in this situation is copying/pasting the contents of your footer into the bottom of your title band, expanded to a height equal to the report's height-topmargin-bottommargin. This will give you the same effect of a footer in the title band.
  8. This line: Caused by: net.sf.jasperreports.engine.JRException: Byte data not found at : flower1.png at net.sf.jasperreports.repo.RepositoryUtil.getBytesFromLocation indicates that you are referencing an image that doesn't exist in the repository. Click on the image, change the property "On Error Type" to Blank to see if you have another problem with your report.
  9. I have reports developed from 4.5.0, and have migrated them to 5.0 (or 5.1), and the input controls do not render in the hyperlink-targeted reports consistently. I'm not sure what's causing the problem here. I thought it was a bug in 5.0 so I put it off, but it wasn't addressed in 5.1 and I can't seem to find other people with the same problems, so it must be something I'm doing but I can't determine what it is. Here is a screencast showing what is happening: http://screencast.com/t/qW9uH0an4Rj Here's another with input control not forcing to always prompt: http://screencast.com/t/LIwTh7G7RjJl Here is the url at the report initially: http://server:8081/jasperserver-pro/flow.html?_flowId=viewReportFlow&standAlone=true&_flowId=viewReportFlow&ParentFolderUri=%2Ftemp&reportUnit=%2Ftemp%2FDavidTestForHyperlinks Here is the url at the report after clicking the link back to itself: http://server:8081/jasperserver-pro/flow.html?_flowId=viewReportFlow&reportUnit=repo%3A%2Ftemp%2FDavidTestForHyperlinks&ToDate=2013-05-24&FromDate=2013-05-01&SalesCenter=CHATTANOOGA&DateRangeOptions=MTD&ShowDetails=true&_eventId_drillReport=&_flowExecutionKey=e12s2&reportLocale=en_US# Attached is a stripped jrxml file I used. Here's an error message I'm receiving from catalina.out: 2013-06-03 14:07:04,460 WARN BaseReportExecutionHyperlinkProducerFactory,http-8080-6:173 - Unknown hyperlink parameter type class java.lang.Object
  10. I ran into an issue with iReport 4.5.0 and 4.5.1 where clicking the database icon to edit the query would cause the (modal) query editing dialog to not display which required a force close of the application. I am using a Windows 7 machine with two monitors of different resolution, which I am expecting to be part of the problem. The issue is with the line: ReportQueryDialog.position.x=-1424 in the file ~/AppData/Roaming/.ireportpro/4.5.1/config/Preferences/com/jaspersoft/ireport.properties Obviously, a negative x coordinate would render the dialog outside of my resolution, so resetting that value to 0 solves the issue. I didn't see anything on this site when I searched for the issue and figured it out myself and wanted to share.
  11. OK, manually deleting it from the database back to the JIResource.id showed me that there were constraints with JIResource.id in: JIDashboardResource.resource_id JIAccessEvent.resource_id ...so someone must have referenced it in a dashboard. Adios report!
  12. JIReportUnit.id has foreign key references from these table.columns, but there's nothing in those tables with the id of the reports I'm looking at. If anybody could help that would be great.... JIAdhocReportUnit.id JIDataDefinerUnit.id JIReportOptions.report_id JIReportUnitInputControl.report_unit_id JIReportUnitResource.report_unit_id Using 3.7.1...
  13. A client is trying to delete a report from the repository and I told him to remove scheduled reports associated with the reports before attempting to delete the report because I figured there was a foreign key from scheduled reports pointing to them. He did that and for a couple of them he is still getting this error: The selected item(s) cannot be removed due to being referenced by other objects. What other foreign keys/objects need to be deleted to allow this. I haven't seen this before and am not by a system to check the db fk's, hoping someone could have an answer.... Thanks!
  14. Hey silvannos, What did you do? I was using this query, but when I log in as this user/tenant, I do not see new entries. How much logging is actually put into the JIAccessEvent table? SELECT * FROM JIUser JOIN JITenant ON JITenant.id=JIUser.tenantId JOIN JIAccessEvent ON JIAccessEvent.user_id=JIUser.id JOIN JIResource ON JIResource.id=JIAccessEvent.resource_id JOIN JIReportUnit ON JIReportUnit.id=JIResource.id WHERE username='$' AND tenantName='$' ORDER BY update_date DESC; Thanks!
×
×
  • Create New...