COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: khoinh on 16 Aug 2010 11:27:38 PM

Title: How to do invisible detail page
Post by: khoinh on 16 Aug 2010 11:27:38 PM
Hi,
I am working on Cognos 8.4 .  I have the tree prompt in prompt page with structure: Level 1 -> Level 2 -> Level 3. The high level will have one or more children node. I want to display detail page if I selected the node from level 1 and level 2. When I selected level 3, the detail page will be invisible. How can I do it?

Thanks
Title: Re: How to do invisible detail page
Post by: rockytopmark on 17 Aug 2010 03:05:23 PM
Create a Conditional Variable based on the Level, that will return either a True False (Boolean) or a string, that can be interogated for use as a Render Variable for the Detail page. 

In essence, you are setting up to: Render the Detail page only when the Condition is appropriate.
Title: Re: How to do invisible detail page
Post by: khoinh on 17 Aug 2010 10:02:32 PM
Hi,

   I used a data item (TreeLevel) to check level of tree. It ran well .However, when I aplied my data item with render variable, I received this error message:
'An error ocurred at or near the position '0'. The variable named 'Query5.Treelevel' is invalid.'

How can I resolve it?

Thanks
Khoi
Title: Re: How to do invisible detail page
Post by: Lynn on 18 Aug 2010 07:04:04 AM
You need to associate that query item to the page. Navigate to the page level and set the Query property to your query. Then select the "Properties" property and place a check mark for your TreeLevel query item.
Title: Re: How to do invisible detail page
Post by: khoinh on 19 Aug 2010 06:00:33 AM
Hi

   It worked for me. However, I see the page is not invisible really. I can not see data in page but a blank page is still showed. How can this blank page disappear?

Thanks