COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: inu on 14 Sep 2016 10:35:19 AM

Title: How to display default date in prompt page using created parameter
Post by: inu on 14 Sep 2016 10:35:19 AM
Hi Guys,

I developed one report , which displays the data monthly wise.

When user runs the report , report displays the data for previous month. if user selects other date, it displays accordingly.
In addition to this, selected date displays on the report..

Problem is , when user runs the report , default date should display in the same place , where selected date is shown using parameter.

how to fix this, can you please suggest me , in this regard.

Thanx
Inam
Title: Re: How to display default date in prompt page using created parameter
Post by: AnalyticsWithJay on 14 Sep 2016 12:16:24 PM
Use conditional variables and a conditional block. Use a Boolean variable with the syntax of [SelectedDate] IS NULL.

If the selected date is null, show the block where you display the default date. I don't know what your default date expression is, but you'll need to use a layout calculation or singleton to display the default date.
Title: Re: How to display default date in prompt page using created parameter
Post by: inu on 15 Sep 2016 01:39:07 AM
Quote from: CognoidJay on 14 Sep 2016 12:16:24 PM
Use conditional variables and a conditional block. Use a Boolean variable with the syntax of [SelectedDate] IS NULL.

If the selected date is null, show the block where you display the default date. I don't know what your default date expression is, but you'll need to use a layout calculation or singleton to display the default date.

Thanks..i will check it.