COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: cfunkho on 20 Aug 2012 01:28:06 PM

Title: Optional Date Prompt -- Uncheck Checkbox?
Post by: cfunkho on 20 Aug 2012 01:28:06 PM
In Cognos 10 Report Studio, I have a date prompt for a date filter that is optional.  When Cognos generates the date prompt, it automatically has a checked checkbox beside it, which a user has to uncheck if they don't wish to pick a date.  My question is, is there a way have that checkbox automatically unchecked?  I'd like the user in this case to have to make a choice to check the checkbox and use the date prompt when they want to, rather than forcing them to uncheck the checkbox when they don't want to use the date prompt.

Thanks,
Chris Funkhouser
Title: Re: Optional Date Prompt -- Uncheck Checkbox?
Post by: tjohnson3050 on 21 Aug 2012 11:13:18 PM
You can create a prompt that conditionally shows a hidden date prompt.  The first prompt would be a value prompt with a single static value ('Select a Date Filter') set to auto submit.  A variable would need to be created based on the parameter from the first prompt.  That variable would conditionally render a block containing a date prompt that only shows after the user selects the first prompt.
Title: Re: Optional Date Prompt -- Uncheck Checkbox?
Post by: cfunkho on 18 Sep 2012 08:50:24 AM
Thanks!  That worked, and was a fairly straightforward solution!

Chris
Title: Re: Optional Date Prompt -- Uncheck Checkbox?
Post by: mrcool on 19 Sep 2012 08:24:54 PM
You can also change the Select UI option to Editbox which knock out the checkbox completly.

-MC