2002 JI Open Discussion Posted August 18, 2006 Share Posted August 18, 2006 By: derick aranha - derickaranha dynamic hyperlinks: HELP 2003-07-23 08:39 I've been struggling with this and have not been able to find a solution.I'd appreciate it any one could help me out here,maybe point me to a website where i could read up on dynamic hyperlinks for jasperreports. I created a report with a hyperlink for each row based on a particular id for that row, obtained from the database. So in the hyperlink reference expression field i have something like this- "http://192.168.168.14:8080/TestProj?ID="+$F{PRODUCT_CD} This works fine when i compile and preview in iReports but when i run it from the website, it shows a hyperlinkreference_2 error and a classcast exception in the jasper fillreport() method. It runs fine when i take the $F{PRODUCT_CD} off. i.e. just "http://192.168.168.14:8080/TestProj?ID=" I've tried $F{PRODUCT_CD}.toString() too, but to no avail. I dont think there's a data anomaly.For some reason jasper doesn't like it when i include dynamic values in the hyperlink. I've even tried making a variable -"IDURL", with the field values put in the variable, and then using that in the hyperlink field as- $V{IDURL}.But this doesn't work either. I could not find any sample reports with dynamic hyperlinks.Any help would be greatly appreciated. Thanks, ...Derick By: Teodor Danciu - teodord RE: dynamic hyperlinks: HELP 2003-10-04 12:44 Hi, Can we see the exact exception stack trace? Thank you, Teodor 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