1

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>
johnt
  • 79
  • 6
  • anybody please? – johnt Dec 20 '20 at 17:02
  • Your question is unclear. Are you trying to skip a prompt page or are you trying to "finish" and navigate to a specific report page? Please don't answer in comments. Update your question. – dougp Dec 21 '20 at 18:39
  • Why are you in Cognos 11 using a JavaScript style that is compatible with Cognos 8? To be able to use the interactive viewer, you'll need to use RequireJS. See the Cognos docs. – dougp Dec 21 '20 at 18:40
  • And are you asking how to do this, or how to do it using JavaScript? Those are very different questions. – dougp Dec 21 '20 at 23:35

1 Answers1

0

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.

Daniel Wagemann
  • 741
  • 4
  • 6