COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: suhas_bhat on 26 Oct 2010 12:09:34 AM

Title: Function to find out if a page has been loaded.
Post by: suhas_bhat on 26 Oct 2010 12:09:34 AM
Hi All,
   This is my requirement, I have 2 report pages, in the second report page i have set the properties of the List report to: Render Page when empty = No. In the 1st page there is a text item with a message like "Go to second page to see so and so data".
I want to render this text item only when page 2 has been loaded. Is there any function to find out if a page has been loaded? Can anyone please tell me how to use it?

Thanks..
Title: Re: Function to find out if a page has been loaded.
Post by: suhas_bhat on 28 Oct 2010 02:15:38 AM
We were able to achieve this by using 'singleton' item from the insertable objects pane.
Place the text item inside the singleton, set the query of the singleton to the second page's query.
Simple. When the query is empty the singleton does not show up hence the text item is not rendered.  :)