Reputation: 1896
I am using Cognos 10 report studio. I need to group a report on a Hyperlink column... or add a hyperlink to the Grouped column without redundantly displaying any data.
I have a Grouped Column, TicketNo. Each TicketNo has multiple lines. I only want the TicketNo (and my Hyperlink) to appear once per Ticket.
Edit: With ElectricLlama's help, I solved the issue. Here is the steps I went through.
Initial Attempt:
I originally used an HTML Text Item so that I could add a custom link which did the 'Open in New Page' automatically. I Unlocked the Report, then I put a 1 column x 2 row table inside the TicketNo column to arrange the two items together in the same Report Column. This works great in HTML reports:
The HTML Item does not show up in PDF output versions of the report:
I need a version of this which works in PDF. For that I tried the 'Hyperlink' Column instead of HTML Item:
The result creates a Hyperlink that works in PDF:
There are multiple redundant links per Ticket. I only want One link per ticket, like we had with the Hyperlink Column. I tried removing the TicketNo column and then Grouping on the Hyperlink column, but Hyperlink columns cannot be grouped on.
Upvotes: 1
Views: 1526
Reputation: 1896
I unlocked the report again (so I could move items around inside the table cells) and moved the Hyperlink into the TicketNo Column. (make sure you select the inner box in the hyperlink when dragging):
And achieved a usable result in PDF:
The final issue was, I only want to see the Hyperlink. Seeing the TicketNo and the TicketNo named hyperlink together seemed redundant. I clicked inside the TicketNo item's Table Cell and selected 'Box Type' -> 'None'.
This hid the TicketNo field, but its Grouping is still in effect:
The result in PDF was exactly what I was looking for:
The Hyperlink appears to be grouped on!
Upvotes: 1