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

Conditional Hyperlink


mk.ramegowda

Recommended Posts

 

I have a report has shown below. Now I need to create hyperlink(ReportExecution) for the column "DEVICE_TYPE". The issue is if the

Device_Type = ATM, the hyperlink should be for ATM_DAILY_REPORT

Device_Type = ADT, the hyperlink should be for ADT_DAILY_REPORT

Device_Type = RECYCLER, the hyperlink should be for RECYCLER_DAILY_REPORT

CYCLE_DATETERMINAL_IDDEVICE_TYPE
2015110112231234ATM
2015110112231235ATM
2015110112231236ATM
2015110112231237ATM
2015110112231238ADT
2015110112231239ADT
2015110112231240ADT
2015110112231241RECYCLE

Please let me know how to build this kind of hyperlinks.

I am using iReport 4.5.0

Link to comment
Share on other sites

  • 3 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

hyperlink.png.48bc92432a4a3c3a973571c2cba2d6f0.png

 

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

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