Cognos 11 HTML button javascript to return from main report to specific Prompt Page

i have a report with 3 prompt pages. page 1 is intro/description, page 2 is filter page1, page 2 is filter page2 which had the Finish prompt button to execute the report.

i had a request from our users to have the ability to return from the report output to a prompt page so they can reset the filters selected. i had tried something i hadn’t ever tried before which turns out to work but not exactly as they intended.

i placed a prompt button on the report output and set it to type ‘Back’ which is somewhat acceptable as a workaround. it works but returns to the prompt page1 which is the intro/description which they’d rather not see again. The users would like it to return to prompt page 2 rather than page 1.

i’ve tried various onclick functions trying to return it to the 2nd prompt page with no luck. has anyone done this before?

goal being to click a ‘back’ button from the report output page (html) and go back to prompt page2 to be able to alter filter selection. another good thing is that the previous selections are preserved with this ‘back’ button setup.

the prompt ‘back’ button returns to prompt page1 which is the hierarchy of the prompt pages, which makes sense but it would be perfect if javascript or other could cause the return to be to the 2nd prompt page.

thanks for reading,
joe

6 thoughts on “Cognos 11 HTML button javascript to return from main report to specific Prompt Page”

  1. The quick answer, copy the filters from page 2 and paste to your report page

    However, rendering could help

    • add a value prompt, UI radio button, default to Yes, with static values (Yes/No) to hide filters
    • create a string variable and add values of yes and no
    • copy the filters from page 2 and paste to your report page
    • just to make things easier, place your filters in a container (like a table)
    • on the table, go to properties, select the ellipsis (the 3 dots) for rendering
    • use the variable you created, there should be two checkboxes, make sure only No is checked (if the user selects yes, the table is hidden/not rendered)
    Reply

Leave a Comment