COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Robl on 28 Jan 2015 09:42:41 AM

Title: HTML page navigation
Post by: Robl on 28 Jan 2015 09:42:41 AM
This is another question where I'm pretty sure I know the answer.

I have been asked to create an HTML report, but on the front page have navigation buttons that jump to various pages on the report.
I don't think this is possible; at least not without some dark arts html or java tags for bookmarks or suchlike.

Have a missed a bit of new functionality that makes this possible in a simple way?
(I've suggested multiple reports with drillthroughs between them, but the client wants a single report for HTML and PDF.)

I'm not expecting a solution here, just some agreement that it's not practically possible.
Title: Re: HTML page navigation
Post by: MFGF on 28 Jan 2015 09:53:46 AM
Quote from: Robl on 28 Jan 2015 09:42:41 AM
This is another question where I'm pretty sure I know the answer.

I have been asked to create an HTML report, but on the front page have navigation buttons that jump to various pages on the report.
I don't think this is possible; at least not without some dark arts html or java tags for bookmarks or suchlike.

Have a missed a bit of new functionality that makes this possible in a simple way?
(I've suggested multiple reports with drillthroughs between them, but the client wants a single report for HTML and PDF.)

I'm not expecting a solution here, just some agreement that it's not practically possible.

You can do this using Table of Contents and/or Bookmark items (from the toolbox). It simply means that the HTML report output will need to be pre-rendered (so the pages exist to jump to).
Title: Re: HTML page navigation
Post by: Robl on 28 Jan 2015 10:40:04 AM
I've just thrown in a quick table of contents.
But in only seems to render when I run to PDF.

Can you point me in the right direction for doing this in HTML.
Title: Re: HTML page navigation
Post by: MFGF on 28 Jan 2015 10:42:48 AM
Quote from: Robl on 28 Jan 2015 10:40:04 AM
I've just thrown in a quick table of contents.
But in only seems to render when I run to PDF.

Can you point me in the right direction for doing this in HTML.

When you run interactively in HTML, only the first page gets rendered, and you have "Next Page", "Previous Page" etc links. This means the other pages are not rendered at this point, so the TOC has nothing to jump to.

Once you have built and saved your report, use the "Run with options" button, select "Save the report" and make sure the rendering type is HTML. The output will then get pre-rendered in its entirety and when you view it, your TOC should work.

Cheers!

MF.
Title: Re: HTML page navigation
Post by: Robl on 28 Jan 2015 11:42:13 AM
Great, Thanks.

But I think it confirms the original thought that you can't just run a prompt based report and have the page navigation working.
I guess you could trigger non-prompted report when the data is updated and have the default action to view the last saved version - that could be something to explore.