cognos navigation to next + 1 page javascript

348 views Asked by At

I would like to create 3 navigations in Cognos 11 Report from prompt page, to be able to quick navigate to page2, page3 and page4. Below is script I found in internet, it uses JS and HTML item functionality. I used it in prompt page but Im able to navigate only to NEXT page (=2 page). Is it possible to adjust this script to be able to navigate to page 3 and 4 also? I tried different options, but it did not work for me, could you please advise?

<script>
function nextPage() {
var ocr= cognos.Report.getReport("_THIS_");
ocr.sendRequest(cognos.Report.Action.NEXT)
}
 </script>
1

There are 1 answers

0
Daniel Wagemann On

A while back Cognos introduced the ability to navigate pages via tabs. Please see https://www.ibm.com/support/knowledgecenter/SSEP7J_11.1.0/com.ibm.swg.ba.cognos.ug_cr_rptstd.doc/t_rptng_view_pges_tabs.html

If you are not going for a specific look and feel, this approach would not require the use of JavaScript or Extensions.