COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Chandrasekar on 07 Apr 2015 12:13:30 AM

Title: Javascript for hide/disable past dates
Post by: Chandrasekar on 07 Apr 2015 12:13:30 AM
Hello Gurus,

As per my requirement i want to hide past dates in date prompt. I am not much expert in java script. can any one help me how to solve this scenario? (I am using cognos 10.2)

Thanks & Regards,
Chandrasekar.P
Title: Re: Javascript for hide/disable past dates
Post by: Chandrasekar on 08 Apr 2015 10:13:31 PM
Any updates Guys.....
Title: Re: Javascript for hide/disable past dates
Post by: AM on 09 Apr 2015 01:50:15 AM
Can it be a query based prompt? you can restrict the available rows with a filter.
Title: Re: Javascript for hide/disable past dates
Post by: cvamarley on 10 Apr 2015 03:39:54 PM
try these links :


Cognos Javascript Basics User Guide -http://www-01.ibm.com/support/docview.wss?rs=0&uid=swg2137696 4

The above link should help you in get set working with JS for Prompts

And for Calendar..I found these links :

http://stackoverflow.com/questions/15061011/how-to-show-calendar-on-text-box-click-in-html

http://stackoverflow.com/questions/18386347/validation-of-date-using-javascript-in-cognos

Hope this helps!
Title: Re: Javascript for hide/disable past dates
Post by: Chandrasekar on 12 Apr 2015 11:28:17 PM
Hello cvamarley,

After implementing this concept i let you know.

Thanks for your replay.