Jump to content
Changes to the Jaspersoft community edition download ×

ireport problem


inaron

Recommended Posts

I am new to this tool, java and am using 2.0.0 version.I've used crystal report before.i don't know how to convert this formula into ireport.and i don't where to put this code in ireport.

 

if len({?parameter1}) > 0 then

{v_all_trnx.batch_no} = {?parameter1}

and

if {?parameter2} > 0 then

{v_all_trnx.payer_id} = {?parameter2}

and

{v_all_trnx.delete_flag} = "N"

else true

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

You cannont use 'If' 'else' statements from within iReport.

 

The equivalent which you can use is a ternary clause. It looks similar. The bolded text is what will execute if the condition results to 'TRUE'. After the ':' is what will happen if it results to 'FALSE'.

 

(len({parameter1}) > 0 ? {v_all_trnx.batch_no} = {parameter1} : Whatever happens when it's false goes here

 

Hope it helps

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...