If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Java Script for Date prompt validation

Started by jatin.popat, 15 Mar 2012 11:49:44 PM

Previous topic - Next topic

jatin.popat

I have two Date & Time prompts in my report - To Date and From date.

Now I have a requirement that if the selection made by the user for 'To Date' and 'From Date' is such that the difference is more than 30 days then it should show alert message.

I think that its possible using some Java script. Can anyone help me with this Java script .

Thanks in advance ....

Lynn

How about render variables to either display the actual report page if the difference is <= 30 or display a different page containing a message if the date difference is > 30? You could add a drill through back to the report itself on the error page for them to re-run.

I think Java Script makes sense to pursue after you've exhausted all out of the box solutions.