Jump to content
JasperReports Library 7.0 is now available ×

conditions in report.. is it possible?


xVik

Recommended Posts

i need two modifications of report: with total field in the summary and without

 

i don't think it is good idea to prepare two report templates (wich will differ in only one field), but i cant find any conditions for reports in documentation

 

is it possible to set a condition to show/hide some block of report?

 

----

for example in jsp i will do

<c:if test=${showTotal}>

Total: ${total}

</c:if>

maybe this will help to clearify what i mean

Post edited by: xVik, at: 2007/04/05 05:22

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

I am no expert but you could try the following

 

create both item/widgets in the report and place them where they are to appear.

 

Use print when expression on each of these widgets. enter an expression that return true when you want to display the widgets and false when you dont want them.

 

this should solve the issue.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...