Jump to content

spize

Members
  • Posts

    4
  • Joined

  • Last visited

spize's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. And how would one go to reset page number if I were to somehow be able to convice my clients to drop the Page X of Y for a Page X ? If I can't, then printing each report individually and strapping them together at the end will be the way to go ? Thanks
  2. Hi people ! I have a report that can span dozens of pages with a couple of subreports. Each print of my object / table / data source can take 3 or more pages. Because of this, my client wants to have the page counter (format Page X / Y) reset for every print, but I have no idea how to do this. Maybe I can with custom variables and scriptlet ? I honestly have no idea... So if I try to rephrase, I have a page number, but I want the number of page to reset every time the object being printed changes. How can I achieve this ? Thanks !
  3. I see... And If I would like to control what appears in my Field based on a conditon, where should that be put if its not in Print when Expression ? EDIT: I found it a couple of minutes after, I needed to put the condition directly in the Expression field. Thanks for pointing me the right way !
  4. Hi, I'm new to iReport and I've been trying to use "Print when expression" to change the value of a field in the database from 0 or 1 (I use MySQL, so no boolean) to Yes No. I've searched around but none of the solutions seems to be working for me. No matter what I try, I always get the same error at compile time : Error filling print... java.lang.String cannot be cast to java.lang.Boolean Integer.parseInt($F{myFieldName}) == 1 ? "Yes" : "No" I've tried various ways to do the comparison, including converting both operands to String or whatever. Fun thing, my comparison seems to "work", as in if I don't put in the if, my report compiles without problem but as soon as I add it the error shows up. I've also made sure my field type (Expression class) is set to java.lang.String Thanks.
×
×
  • Create New...