mk.ramegowda Posted November 20, 2015 Share Posted November 20, 2015 I have a report has shown below. Now I need to create hyperlink(ReportExecution) for the column "DEVICE_TYPE". The issue is if theDevice_Type = ATM, the hyperlink should be for ATM_DAILY_REPORTDevice_Type = ADT, the hyperlink should be for ADT_DAILY_REPORTDevice_Type = RECYCLER, the hyperlink should be for RECYCLER_DAILY_REPORTCYCLE_DATETERMINAL_IDDEVICE_TYPE2015110112231234ATM2015110112231235ATM2015110112231236ATM2015110112231237ATM2015110112231238ADT2015110112231239ADT2015110112231240ADT2015110112231241RECYCLEPlease let me know how to build this kind of hyperlinks.I am using iReport 4.5.0 Link to comment Share on other sites More sharing options...
kkriplani Posted December 7, 2015 Share Posted December 7, 2015 Correct me if i am wrong, You are trying to link different reports based on the parameter $P{Device_Type}:The method that could help in doing so would be; for the link parameters in the hyperlink, under parameter name, add, _report and give it the following condition under Expression;$P{Device_Type} == "ATM" ? "*path_of_ATM_DAILY_REPORT*" : $P{Device_Type} == "ATD" ? "*path_of_ATD_DAILY_REPORT*" : "*path_of_RECYCLER_DAILY_REPORT*"Notes:1) Replace the line between * * with the respective paths (excluding the *s)2) Link the other parameters as per your requirement.I hope this helps,Thank you.KKriplani 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