COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: dekovite on 11 Mar 2014 11:28:47 AM

Title: Tree Prompt Default Selections not displaying as expected in ParamDisplay
Post by: dekovite on 11 Mar 2014 11:28:47 AM
Hi, looking for some advice about what I believe is strange behaviour with a tree prompt with Default Selections.

The report is built against a CUBE, and to assist the end user, we have selected some Default selections in a Tree Prompt.  The Data runs as expected using the selections, and on the report page we also have a header summary to display what was selected.

If the tree prompt remains closed when the report is run, the ParamDisplay appears as follows :

[CUBE_SWSC].[Product].[Product].[Division]->:[PC].[@MEMBER].[26], [CUBE_SWSC].[Product].[Product].[Division]->:[PC].[@MEMBER].[75], [CUBE_SWSC].[Product].[Product].[Domain Name]->:[PC].[@MEMBER].[DomainName]

However, if you expand the prompt before running the report, this is replaced with the expected name values for the items.

I've set the prompt to Pre-Populate and added 4 to the Pre-populate levels thinking this would fix it, but no joy.

The ParamDisplay uses some Case statements depending on the report selected, it fills based on a parameter, but I don't think this is the problem as when the tree is expanded, it works as expected.

Any suggestions for how to correct the problem, preferably without asking the user to always expand the tree ?

Thanks
Title: Re: Tree Prompt Default Selections not displaying as expected in ParamDisplay
Post by: Ammus1234 on 12 Mar 2014 04:58:01 AM
Are you using a report expression in the header? I have a similar report which display correctly.
Which version of cognos are you using?
Title: Re: Tree Prompt Default Selections not displaying as expected in ParamDisplay
Post by: MFGF on 12 Mar 2014 05:32:55 AM
Are you using ParamValue() or ParamDisplayValue()?

MF.
Title: Re: Tree Prompt Default Selections not displaying as expected in ParamDisplay
Post by: dekovite on 12 Mar 2014 10:42:59 AM
The exact contents of the Report Expression is as follows :

CASE
WHEN (ParamValue('pType') = 'Replayout1') THEN (ParamDisplayValue ('pReptype1'))
WHEN (ParamValue('pType') = 'Replayout2') THEN (ParamDisplayValue('pReptype2'))
WHEN (ParamValue('pType') = 'Replayout3') THEN (ParamDisplayValue('pReptype3'))
ELSE ParamDisplayValue('Reptype4')
END

We are using 10.2 and will shortly be upgrading to 10.2.1.2, so have access to a test system on that version, but it still does the same thing when I tried it yesterday.

As mentioned previously, if you expand the tree, it all works fine  :-\
Title: Re: Tree Prompt Default Selections not displaying as expected in ParamDisplay
Post by: naydog on 26 May 2014 04:33:00 AM
I have the same issue. Hope someone can help.