COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: lifzgud on 28 Apr 2010 12:14:47 AM

Title: Naming Cognos report dynamically
Post by: lifzgud on 28 Apr 2010 12:14:47 AM
Hi,
I am preparing a report in which  i have to name the country and date in the report name .
It should be like
Country<Value>IBT<Date>
Is it possible?
I am using 8.2
Title: Re: Naming Cognos report dynamically
Post by: vinu on 28 Apr 2010 01:28:36 AM
Check ParamDisplayValue() function.
Title: Re: Naming Cognos report dynamically
Post by: lifzgud on 28 Apr 2010 01:40:34 AM
But how do i implement that in the Report name?
Title: Re: Naming Cognos report dynamically
Post by: vinu on 28 Apr 2010 04:17:50 AM
Drag Layout Calculation from toolbox in to your Report Header and write a expression ParamDisplayValue('country Parameter name') and ParamDisplayValue('Date Parameter name')

It will be like in your Report Header at Report Name 'Country calculation expression for Country IBT calculation expression for Date'.

calculation expression for Country:ParamDisplayValue('country Parameter')

calculation expression for Date : ParamDisplayValue('country Parameter')

HTH
venu
Title: Re: Naming Cognos report dynamically
Post by: srinu1253 on 28 Apr 2010 04:53:41 AM
you can also so this by dragging a text item into the header and change the property to report expression and then put the paramdisplay funtion of the coutry prompt ....
Title: Re: Naming Cognos report dynamically
Post by: actcognosuser on 28 Apr 2010 03:19:11 PM
Hi Srinu,
               The param display value holds good only for the report header but not the actual report name.
Is there a way to change the report name at runtime?or append a timestamp while sending it out via email?
Title: Re: Naming Cognos report dynamically
Post by: mrcool on 20 May 2010 08:20:43 PM
Hello All,

Any one got solution for this?I have same requirement.
@actcognosuser 
Please let me know if you have got solution for this.

Cheers
Mrcool
Title: Re: Naming Cognos report dynamically
Post by: eliza_jane on 21 May 2010 01:00:12 AM
Try bursting the report. You can use a dummy data item for the burst group such that you get 1 report output and create a data item with the required dynamic name logic that can be used for report label.