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

lip_bahia

Members
  • Posts

    3
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by lip_bahia

  1. I have a group X and want the header of this group is written only if the value of a variable sum is not equal to 0 in this way: new BigDecimal (0). compareTo ($ V { TOTAL_EMP_UO})! = 0 | | New BigDecimal (0). CompareTo ($ V { TOTAL_LIQ_UO})! = 0 | | New BigDecimal (0). CompareTo ($ V { TOTAL_PAG_UO})! = 0[/code] But when I put this condition in Print when group header he did not write the header, it is as if the variable was always 0 before the group. But the group footer has the same condition and is writen. How do I fix this?
  2. Thanks Man. I have changed the way i was doing it and end up using the pattern propertie without the dynamic. just had to change the type of my filed Class to BigDecimal and it worked.
  3. Hello, I have a requirement to display currency(a BigDecimal) with parenthesis like this "(-#,##0.00)" when the respective amount is negative. I am able to achieve it by creating a conditional style and applying the dynamic pattern as "(-#,##0.00)" when necessary. However, the display shows me the value like this "-(-0.000,00)". The value returned from the query it's already negative. How can i get the result whit just de negative inside the parenthesis? like this "(-0.000,00)". My condition in the propertie "Pattern EXP." for the field is : $V{TOTAL_LIQ_UG}.compareTo(new BigDecimal(0)) < 0 ?"(-#,##0.00)":"#,##0.00"
×
×
  • Create New...