If you are unable to create a new account, please email support@bspsoftware.com

 

How to go directly from 1st page to 3rd page in if report has 5 output page

Started by sunny bachan prasad, 13 Feb 2016 09:24:24 PM

Previous topic - Next topic

sunny bachan prasad

Hi Gurus,
I have report which is based on relational modelling.When we are running report output is  comeing  in 5 pages .Now user have a requirment  that he can go to any page from first page when he run report.Suppose he runs report and 1 st page will come by default then if he want to go to 3 rd page he can directly jump there.Can anyone share their experiance on this.Thanks in advance :)

afzaki7

Hello
I think you couldn't d what you want normally as depend on my information cognos navigate to pages according it's order
so you must navigate from 1 to 2 to 3 to 4 to 5 in this order

however i think you can work around that by java-script but what i am going to write next is just a suggestion i didn't try it on a real case

what i suggest is to
1- add a value prompt in the 1st page has four static choices lets say Page2 ,Page3 , Page4 ,Page5
2- aslo in the 1st page add 4 HTML item each one of them will represent a navigation to a specific page from the four pages
3- in each HTML we will do two things first check the page we want to navigate to in value prompt and then do the next button function
it will be something like that

<script type="text/javascript">
function PageNavigate1()
{
var fW = (typeof getFormWarpRequest == "function" ? getFormWarpRequest() : document.forms["formWarpRequest"]);
if (fW)
fW._oLstChoicesPromptName.options[1].selected = true; 
promptAction('next');
}
</script>
<button onclick="PageNavigate1();">To Page 2</button>

4- in each 4 pages we will put a HTMl item which will represent a java-script check on the parameter in the value prompt and also will do the next button function if the page is not the selected page at the parameter

the summary of my suggestion is to navigate from page to another to reach the page we want

let me know if you got what i mean

" إِذَا مَاتَ ابْنُ آدَمَ انْقَطَعَ عَمَلُهُ إِلا مِنْ ثَلاثٍ : مِنْ صَدَقَةٍ جَارِيَةٍ ، أَوْ عِلْمٍ يُنْتَفَعُ بِهِ ، أَوْ وَلَدٍ صَالِحٍ يَدْعُو لَهُ "

BigChris