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

byron.ullauri

Members
  • Posts

    17
  • Joined

  • Last visited

byron.ullauri's Achievements

  1. 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?
  2. When publishing to the server, subreports must have different names...even if their paths are different!
  3. 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?
  4. Say I have a Group Header, What would be the difference in setting the Evaluation Time to Now or [Group] GroupName for a TextField?
  5. 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
  6. 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.
  7. 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
  8. 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.
  9. 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
  10. My solution to this was to create a "Dummy Group" and set the PrintWhenExpression arg on the Group Header band itself.
  11. "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.
  12. 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 itselfUsing the Unicode value and returning it as a stringUsing html codes like £ and setting the format option on textfield to htmlAny idea on how to fix this?
  13. 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?
  14. To anyone looking for this, https://stackoverflow.com/questions/3966947/jasper-report-header-not-printed-on-summary-page
  15. 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.
×
×
  • Create New...