COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: EArumugam on 27 Oct 2009 06:58:43 AM

Title: date comparision
Post by: EArumugam on 27 Oct 2009 06:58:43 AM
I need to compare my From date and to date prompt

If from date >to date then alert messeage will show.

PLease share if anybody having Javascript

Thanks
Title: Re: date comparision
Post by: david.stachon on 27 Oct 2009 01:43:07 PM
...hopefully, you are using "in_range" as opposed to two different date prompts?
Title: Re: date comparision
Post by: dattu on 03 Nov 2009 04:15:15 AM
hi,
we can use java script inside HTML item inorder to display alert.
example

<script language="Javascript">
<!--
alert ("Entered From Date is greater than to date")
//-->
</script>

use boolean variables.if from date is greater than todate then use the above code.

hope this will help u.
:)