COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: Mpotla on 09 Jun 2009 06:21:20 AM

Title: Date Prompts mandatory Based on the Selection
Post by: Mpotla on 09 Jun 2009 06:21:20 AM
HI All,

I have two date prompts(from_date, to_date) which are optional,I need to implement the java script in such a way that when i select a value to From_date ,it should ask the to_date prompt to Mandatory...vice versa.

If i dont select anything It should run the data for all the dates as the date prompts are Optional.

Please suggest me how to implement my requirement.

Thanks in Advance

Mohan
Title: Re: Date Prompts mandatory Based on the Selection
Post by: Gopinath on 09 Jun 2009 07:13:08 AM
If acceptable for your end users, have these 2 date prompts inside a conditional block.
Have  valueprompt (Checkbox) and conditionally display the date prompts based on the user selction.