Hyperlink in crosstab

1

Hi..

I'm facing an issue while passing a parameter of collection type from a crosstab element in ireports.

A field in crosstab is used as a hyperlink to pass few parameters to the other report. The parameters are of String, Date and one is of Collection type. All the parameters other than the collection type are passed to the new report successfully; but the parameter of collection type is always send as blank and all the data from this parameter gets lost in transit. I am not able to solve this issue.

Can anyone help me out with solving this..

Thanks.

ADR707's picture
14
Joined: Dec 1 2011 - 1:11am
Last seen: 7 years 1 month ago

4 Answers:

0
Hi,
You need to convert your collection to a String.

1. Simply convert the collection to a string in your main report for another parameter in the default expression. ($P{ParameterName}.toString())

2. In the hyperlink, send this to the collection in the drill-down page. And choose the parameter class of java.lang.String.

3. Then if your Hyperlink links to another report you shouldn't need to make any changes to the drilldown report - it will accept the string value into the collection, and it should seems to run just fine.

Let me know if it helps and if not what is the version of iReport you're using?

Regards,

Raphael
rpeguet's picture
9541
Joined: Mar 8 2011 - 2:06am
Last seen: 2 weeks 6 days ago
0

Hi Raphael,

It worked.

Thanks a lot  for replying, it helped me a lot..

Regards,

Sam

 

ADR707's picture
14
Joined: Dec 1 2011 - 1:11am
Last seen: 7 years 1 month ago
0

Hi,

I want use hyperlink in my crosstab mesure cell. when i am clicking the value it should call details report with corrosponding value. but i am getting error when i am trying to add parameters in main report saya filed is not found.

can some body help me how to create hyperlink in crosstab.

 

govardhan209's picture
Joined: May 31 2012 - 12:02am
Last seen: 8 years 11 months ago
0
Anyone can please help how create the hyper link in cross tab.
manish.taneja01's picture
Joined: Aug 20 2018 - 11:03am
Last seen: 5 months 4 days ago
Feedback
randomness