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

dstevens_2

Members
  • Posts

    19
  • Joined

  • Last visited

dstevens_2's Achievements

Apprentice

Apprentice (3/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

  1. In Jaspersoft Studio (6.3) it is also a report-level setting. Rt click on Report name in Outline pane > In Report tab of Properties pane check the "Summary on a New Page" box
  2. I have the same question that another person posted on stackoverflow. Re-posting his question here to see if anyone has an answer: "There is a concern within my organization with regard to having business logic embedded within jasper reports for performing certain calculations. Obviously in order to create reports you need to utilize expressions and variables. Is there a good method for sharing these expressions/variables among different developers by say defining them within an external class that can then be accessed by everyone. Comes down to having the expression defined in a singular place that everyone can then pull into their reports when needed rather then having the same expression living within multiple reports as that could lead to inconsistencies in the way it's being calculated due to human error, etc.....Just looking for feedback on how folks may be accomplishing this within their own organizations. stackoverflow.com/questions/9082649/jasper-reports-sharing-expressions-variables"
  3. Thank you for these samples. The code is really useful. Does this mean individual series-level properties cannot be set through Server Advanced chart formatting, only through studio?
  4. Hello. I have a chart with 6 series. I want the first three series to be stacked bar, and the last 3 to be lines. In JasperServer 6.4 I selected stacked column line. Currently the first 5 series are stacked bars on yAxis = 0, and the 6th series is a line on yAxis=1. How can I tell jasperserver to make the last three series type = line? Amongst other things, i have tried: plotOptions.series: [{type: 'column', yAxis: 0}, {type: 'column', yAxis: 0}, {type: 'column', yAxis: 0}, {type: 'line', yAxis: 1},{type: 'line', yAxis: 1},{type: 'line', yAxis: 1}]series.type: ["line","line","line","column","column","column"]Thanks!
  5. FYI, in the Expression Editor GUI the row group measure doesn't always appear, so you might have to manually add it. Once you've pasted the variable name into the editor, the GUI still won't recognize it, the the report will run and perform the proper sorting.
  6. Within the report, I believe you use java-based syntax, for example: OR($F{field}.equals("Value1"), $F{field}.equals("Value2") ) I think the $X{IN, $F{field}, $P{param}} syntax is only used when filtering an Input Control (the server-side object, not the corresponding parameter in the studio report), or if you want to use a Filter Expression in the Dataset and Query Dialog.
  7. Hello I am trying to create a modified version of the "Recently Viewed" report that is on the default Jaspersoft Home Page.My goal is to generate a poor-man's version of a Favorites table, that displays the top 10 report objects (dashboards, ad hocs or reports) that have been viewed over the past 30 days (as opposed to the last 10 viewed with no date-range aggregation).What would be really awesome: Is there a way to access the extant Recently Viewed table on the Home Page, and modify its date ranges?If I must continue down the less preferable path of building a custom table:What i have so far: An enhanced Audit domain that pulls in fields from public_jiResource, public_jiResourceFolder, and public_AuditEventA table in a studio-generated reportThe table displays jiResource.Label, sorted descending by COUNT(jiAuditEvent.ID) for event_date BETWEEN MONTH and DAYA java.lang.String variable that gives a (hard coded) report or adhoc URL depending on if jiAuditEvent.resource_type is AdhocDataView or ReportUnit:<variable name="Var_hyperlink" class="java.lang.String" resetType="Group" resetGroup="Group_ResourceID"> <variableExpression><![CDATA[iF($F{public_jiauditevent.resource_type}.equals("ReportUnit"), "http://ddevrpt:8080/jasperserver-pro/flow.html?_flowId=viewReportFlow&_flowId=viewReportFlow&ParentFolderUri=%2FUser_Content%2FDharol%2FDashboards%2FProductionVariance&reportUnit=%2FUser_Content%2FDharol%2FDashboards%2FProductionVariance%2FProduction_Variance_Time_Series&standAlone=true",IF($F{public_jiauditevent.resource_type}.equals("AdhocDataView"), "http://ddevrpt:8080/jasperserver-pro/flow.html?_flowId=adhocFlow&resource=%2Fpublic%2Faudit%2Freports%2FAudit_Report_AdhocDataView&ParentFolderUri=%2Fpublic%2Faudit%2Freports", "D"))]]></variableExpression>[/code]A reference hyperlink using ${Var_hyperlink} that works for my hard-coded URLs: <jr:cell style="Table 3_CH" height="30" rowSpan="1"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <textField hyperlinkType="Reference" hyperlinkTarget="Blank"> <reportElement x="0" y="0" width="100" height="30" uuid="8e0205ca-0254-47c8-80e6-723dea64e5b0"/> <textFieldExpression><![CDATA[$F{Resource_DerivedTable.resourcelabel}]]></textFieldExpression> <hyperlinkReferenceExpression><![CDATA[$V{Var_hyperlink}]]></hyperlinkReferenceExpression> <hyperlinkTooltipExpression><![CDATA[$F{Resource_DerivedTable.description}]]></hyperlinkTooltipExpression> </textField> </jr:cell>[/code]My Question: I don't know how to dynamically construct the URL for the Adhocs/Reports.I have the various resource attributes in my Audit Domain, but don't know a way other than incredibly tedious parsing of the attributes and then compiling them into the URL.Is there some Web Util function I can use?Possibly something like: public static final java.lang.String PROPERTY_REPORT_EXECUTION_PATHI have very little experience with java.My admin is also not super friendly about changing config files, if this is relevant to your proposed solution.Could someone give me the syntax I would use in my $V{var_hyperlink}? What are the inputs of the REPORT_EXECUTION_PATH, if this is a possible solution.Many thanks!
  8. For anyone searching for answer to this: Footer band does not print on every page that a summary band takes up. Solution 1: If it works for your data, put the contents of the summary band into any other band type (Title, Detail, Group Header, etc.) Solution 2: If your data really needs to be in the summary band to aggregate correctly, you can Create a subreport.Put the data content in the summary band of your subreport.In your main report, reference the subreport in a non-summary band type.
  9. I am trying to use the Audit Data Domain to figure out which user created reporting objects (domains, adhocs, reports). I see in the "Events being audited and monitored" jasper documentation that there is a field "Create report in Adhoc Editor", with values of "Field added as a column" or "Field added as a group". However, I cannot find a field in any of the audit domains called "Create report". I am using jasper 6.3. Is this field in this domain somewhere? I do see a field [EventType] in the Audit Events table of the Audit Archive domain, and one of the values for this field is [saveResource]. Is a [saveResource] event indicate that the resource was created, or is [saveResource] event logged anytime the user saves the resource, for example, if they edit and then save the updated resource? If EventType = saveResource is logged for creating or updating, what table and what field indicates that the resource was Created? thx!
  10. I am having trouble implementing a highchart property. Specifically i have implemented the following code, and the report will run but nothing happens when i click the data series: <jrhc:chartProperty name="plotOptions.series.events.click"> <jrhc:propertyExpression><![CDATA["function() { window.open('http://www.google.com');}"]]></jrhc:propertyExpression> </jrhc:chartProperty>[/code]I also have this line in my jrxml: <property name="com.jaspersoft.jasperreports.highcharts.function.properties.allowed" value="true"/>[/code]I have read in a couple forums that this line of code needs to be added to WEB-INFclassesjasperreports.properties. Is this true for version 6.3.0? Do I need to get my admin to add "com.jaspersoft.jasperreports.highcharts.function.properties.allowed" value="true" to \WEB-INFclassesjasperreports.properties to access highchart event functions?
  11. I know it is possible to flag "Favorite" reports in the Jasper Mobile application, but is it possible to flag or bookmark reports in JasperServer? I want the same functionality as available in the mobile app - user flags favorites and can access them through a "Favorites Page", but I can't find anything about implementing this functionality in JasperServer.
  12. Our site has a lot of content and a deep hierarchy. I am looking for a way to display to users where they are in this hierarchy, by adding bread or cookie crumbs somewhere in the UI. Is it possible to do any of the following: Add a bar below the Main Menu Bar and put bread crumbs in itAdd bread crumbs in the bar right below the Main Menu Bar (the grey-ish bar that contains the word "Home", "Repository", or the name of the Report/Ad Hoc/Dashboard being viewed)?If none of this is possible, any alternative suggestions most welcome.
  13. Agree johnv.little - Box padding is in my experience of very little use. Would be extremely useful to have "text" padding as a style attribute.
  14. I wasn't able to find a way to add a column without a group, so did the following work around: In my last column I added a second text field element in the Column Group headerCrossTab > Column Groups > Total DateData.Date: This section contains two text fields I added a second text field element in the Column Group Detail sectionCrossTab > DateData.Date/Detail: This section contains two text fields, with each of my $V{Variable_Measures} Apologies, i don't seem to have permission to upload a screenshot, but src code aboveIm sure it's more complicated when your crosstab contains totals, mine was fortunately a very simple crosstab
  15. Doesn't look like there are too many answers to be had for this problem, but i am encountering a similar issue for which closing ide did not work. Thx in advance net.sf.jasperreports.engine.JRException: net.sf.jasperreports.engine.JRException: Variable WellID_Return is not assignable from source variable WellID. at com.jaspersoft.studio.editor.preview.view.control.ReportControler.fillReport(ReportControler.java:537) at com.jaspersoft.studio.editor.preview.view.control.ReportControler.access$20(ReportControler.java:512) at com.jaspersoft.studio.editor.preview.view.control.ReportControler$5.run(ReportControler.java:393) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Caused by: net.sf.jasperreports.engine.JRException: Variable WellID_Return is not assignable from source variable WellID. at net.sf.jasperreports.engine.fill.AbstractVariableReturnValueSourceContext.check(AbstractVariableReturnValueSourceContext.java:77) at net.sf.jasperreports.engine.fill.FillReturnValues.checkReturnValues(FillReturnValues.java:233) at net.sf.jasperreports.engine.fill.JRFillSubreport.validateReport(JRFillSubreport.java:1043) at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluateSubreport(JRFillSubreport.java:466) at net.sf.jasperreports.components.table.fill.FillTableSubreport.evaluateSubreport(FillTableSubreport.java:102) at net.sf.jasperreports.components.table.fill.FillTable.evaluate(FillTable.java:133) at net.sf.jasperreports.engine.fill.JRFillComponentElement.evaluate(JRFillComponentElement.java:110) at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:381) at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:500) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2022) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:748) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:255) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:115) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:580) at net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:123) at java.lang.Thread.run(Thread.java:745)
×
×
  • Create New...