byron.ullauri
-
Posts
17 -
Joined
-
Last visited
Content Type
Forum
Downloads
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Security Advisories
Events
Profiles
Posts posted by byron.ullauri
-
-
When publishing to the server, subreports must have different names...even if their paths are different!
-
My Report Book...
Table of Contents Section
table_of_contents.jasper
Content Section
reportA.jasper, reportB.jasper, reportC.jasper, reportD.jasper.Backcover
empty
reportA has two subreports
reportB has one subreports
reportC has two subreports
reportD has two subreports
In one case, when calling the report book, it calls reportA and reportC (Which is intended in this case) but reportC has reportA's subreport !
has anyone faced this issue?
-
Say I have a Group Header,
What would be the difference in setting the Evaluation Time to Now or [Group] GroupName for a TextField? -
Chose subreport and didn't see any "When No Data Type" property on the menu, tried searching for it as well.
Edit: The "When No Data Type" property belongs to the report itself and corresponds to the "No Data" band
-
I have a subreport that I want to print only when it has data, My approach to this is to return a variable (boolean) that checks if the first value of a field is null.
In the master report, I added a "dummy group" band to place the subreport in and in the "print when expression" for the band I placed the returned variable.
The issue is that the band never prints even when I explicitly set the returned variable to true in the subreport.I tried placing the variable itself in a text field on the page footer and it prints the correct value for it.
-
For each subreport, add a return value (id go with a boolean) that tells the master report if it had data (Maybe check if a field value is null).
Go into the 'print when expression' of each:
A.) band if the subreport is the only component there (by hiding the band you get rid of empty space)
B.) subreport if there are other components in that band (the subreport will not be visible but will still occupy space)
The 'print when expression' for the two subreports without the label should be their corresponding return value.
The 'print when expression' for the subreports with the label should be an OR statement that includes all three return values. (ex. REPORTA_VISIBLE || REPORTB_VISIBLE || REPORTC_VISIBLE
P.S"... and only once if one or more subreports have data." Not sure why it would print more than once unless you have it in a repeating group or detail band, in which case you should add the last OR part to the label itself and include the built-in COUNT variable to check if its == 1
-
Yes, this seems to be the case. Couldn't find a .ttf version of the font I'm using so I tried looking up if there was a way to convert .otf to .tff, managed to do it but still no dice on getting currency symbols to show up. My solution was to change the font being used for fields that had the currency signs.
-
I did add the font using font extensions, though it is worth noting that the file ext for the font is .otf instead of .ttf
-
My solution to this was to create a "Dummy Group" and set the PrintWhenExpression arg on the Group Header band itself.
-
"Blank When Null" is used in cases where a value returns null; For example, a column value on a row. In my case, this will have a value throughout the report, but I only want to show it on the first page.
-
I have a variable that checks the value of a column (currency name) and returns its currency sign through a series of ifs/else.
When viewed in jaspersoftstudio, it shows an empty box in preview and when exporting.
On the server, the preview shows the currency sign but when exporting to pdf, the empty box returns.I've tried:
- Copying and pasting the symbol itself
- Using the Unicode value and returning it as a string
- Using html codes like £ and setting the format option on textfield to html
Any idea on how to fix this?
-
I have a group on accounts.
(Field Amount) - the amount coming in for an account
All BigDecimal types
(Variable A) - I have a variable set to sum Amount per account, reset on group, and display a total for that group.
(Variable B) - Another variable takes this sum (Variable A) and converts it to USD by multiplying it to a rate.
(Variable C) - Finally, the variable causing the error sums on this converted currency product variable (Variable B) for a USD total.
Basically, for each member of this accounts group, I have to show (Variable A) and (Variable C), which are both found in the Group Header.
I put (Variable C) in the Summary Band to show the sum total of (Variable B) .
All this is in a subreport. (Variable B) is fine but (Variable C) comes up with a ridiculously high sum.
Any suggestions on what to try and change? -
To anyone looking for this,
https://stackoverflow.com/questions/3966947/jasper-report-header-not-printed-on-summary-pageBy default, the page header does not apply to the summary band.
Since Jasper 3.6.1, there is a report property that can be used to force the summary band also to have page header, called 'Summary with Page header and footer'. You should check it in iReport, or set
isSummaryWithPageHeaderAndFooter="true"
in the jasperReport tag. -
Is there any way to stop an element from taking up space when its not visible.
I have an element I print only on the first page (PrintWhenExpression="$V{PAGE_COUNT} <= 1") but in other pages, it still takes up space, also have stuff in that band I want to show.
-
Solved this by removing a subreport I had in the 'BackCover' section of the report book.
Not entirely sure why that was causing an issue, but when rebuilding the report book part by part having the subreport there raised NullPointerException.
-
Created a report book using 'wave' as a base template for its table of contents. During publishing, when looking for resources used (subreports in my case), I get an error with the following details
java.lang.NullPointerException
at com.jaspersoft.studio.server.publish.JrxmlPublishContributor.publishParts(JrxmlPublishContributor.java:135)
at com.jaspersoft.studio.server.publish.JrxmlPublishContributor.publishJrxml(JrxmlPublishContributor.java:120)
at com.jaspersoft.studio.server.publish.JrxmlPublishContributor.publishJrxml(JrxmlPublishContributor.java:76)
at com.jaspersoft.studio.server.publish.FindResources.findResources(FindResources.java:98)
at com.jaspersoft.studio.server.publish.FindResources.find(FindResources.java:40)
at com.jaspersoft.studio.server.publish.wizard.Publish2ServerWizard$2.run(Publish2ServerWizard.java:259)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:437)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:353)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:993)
at com.jaspersoft.studio.server.publish.wizard.Publish2ServerWizard.doFindDependentResources(Publish2ServerWizard.java:255)
at com.jaspersoft.studio.server.publish.wizard.Publish2ServerWizard$1$1.run(Publish2ServerWizard.java:205)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:182)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4032)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3708)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:818)
at org.eclipse.jface.window.Window.open(Window.java:794)
at com.jaspersoft.studio.server.publish.action.JrxmlPublishAction.publishReportUnit(JrxmlPublishAction.java:132)
at com.jaspersoft.studio.server.publish.action.JrxmlPublishAction$2.run(JrxmlPublishAction.java:94)
at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:162)
at org.eclipse.ui.internal.UISynchronizer$3.run(UISynchronizer.java:154)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:182)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4032)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3708)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:693)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:610)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at com.jaspersoft.studio.rcp.intro.Application.start(Application.java:91)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
Tried publishing the same 'wave' sample report book and was successful.
Subreport in No Data Band not displaying
in Products
Posted
I have a main report that must display all records for a particular product. If that product has no records to show, I need the No Data Band to call a subreport that displays a product summary. When testing locally, through jaspersoft studio, I can get this to work. However, this fails when running on JasperReportsServer.
Any idea on what might be happening?