inaron Posted August 21, 2007 Share Posted August 21, 2007 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}andif {?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 More sharing options...
codyjasperForge Posted August 21, 2007 Share Posted August 21, 2007 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now