By: Fadjar Tandabawaa - fadjar340
Hyperlink with $F{foo}
2006-05-31 05:16
Dear All,
I already tried the IReport and use the sample reports but I need to use the hyperlink with value from the field.
Is is possible??
Regards,
Fadjar
Hyperlink with $F{foo}
2006-05-31 05:16
Dear All,
I already tried the IReport and use the sample reports but I need to use the hyperlink with value from the field.
Is is possible??
Regards,
Fadjar
2 Answers:
Posted on May 31, 2007 at 12:03am
I am facing the same issue , I need to pass in the value from a field to the hyperlink that I create on second field.
Example
My report looks like
10 Dallas
20 California
Now when I click on 10 I need my hyperlink to look like
http://localhost:8080/reportMgmt?repid=1?param1=10
Similary when I click on 20
http://localhost:8080/reportMgmt?repid=1?param1=20
Please help
Example
My report looks like
10 Dallas
20 California
Now when I click on 10 I need my hyperlink to look like
http://localhost:8080/reportMgmt?repid=1?param1=10
Similary when I click on 20
http://localhost:8080/reportMgmt?repid=1?param1=20
Please help
Posted on May 31, 2007 at 12:34am
The Hyperlink Referance Expression is a string. To pass a parameter you simple build the string.
"http://localhost:8080/reportMgmt?repid=1?param1=" + $P{myParameterValue}
"http://localhost:8080/reportMgmt?repid=1?param1=" + $P{myParameterValue}