COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Report Studio => Topic started by: nugget on 16 Feb 2009 08:05:29 AM

Title: Read out a parameter in Dataelements
Post by: nugget on 16 Feb 2009 08:05:29 AM
Hi forum,

how can i read out a parameter in a dataelement. i want something like this ParamDisplayValue(?Prompt?). But the function ParamDisplayValue() is not supportet in dataelements. how can i get a value of a prompt in a dataelement. if i write ?Prompt? into it and run the report, a promptpage is displayed. but this is not what i want i only want the value of a prompt if someone is selected.

i hope you understand my problem. my englishskills are not the bests  ;D
Title: Re: Read out a parameter in Dataelements
Post by: Rajaggopal on 18 Feb 2009 04:18:45 AM
i think im missing something, but how do u intend someone to select a prompt value without a prompt page?
Title: Re: Read out a parameter in Dataelements
Post by: nugget on 18 Feb 2009 05:58:42 AM
you can set a parameter over the url (add &p_parametername=foobar).

but i solved my problem so this thread can be closed.
Title: Re: Read out a parameter in Dataelements
Post by: Rajaggopal on 18 Feb 2009 10:45:28 PM
Solution please.
Title: Re: Read out a parameter in Dataelements
Post by: nugget on 19 Feb 2009 02:09:35 AM
ok i tried to explain but i have to warn you about my english ;-),

i had a tabnavigation in my reports with html-elements so i have to send additional parameters with each tablink (&p_). the problem was that it was not apple to get the parameter values in the url. now i have changed my hole concept. i dont use htmlelements for my tabnavigation anymore. now i build a new tabnavigation with a list-object (for styling the tabs with stylevariables) and textelement. to navigate i use the drillthrough option to link of the report itself to send the parameters.

its a little more waiting time between you navigation from one tab to another but its work for me and its more compatible to further changes in cognos because there is no javascript in the report anymore.

greets

Title: Re: Read out a parameter in Dataelements
Post by: Rajaggopal on 02 Mar 2009 01:21:51 AM
Thats an interesting solution for tab navigation without java scripts :)