Skip to Content
author's profile photo Former Member
Former Member

Validation based on variable date

Hi all,

I need help in validating customers based on dates...the DSO has contract start date and end date....based on which i need to figure out two things..

1) based on a user input date(variable date) if the contract is active or inactive

- active customers if variable date is in between start and end date.

- inactive customers if variable date is greater than end date

2) Be able to select specify active or inactive or both in the selection screen. Currently there is no field on the DSO that determines active or inactive customer.

So ineffect if the user select todays date and then select active....the result set should include only active customers based on todays date.

Thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 06:06 AM

    1. Define a formula (Active/Inactive) as follows --

    ( start date <= var date <= end date ) * 1 + ( var date > end date ) * 0

    so 1 - Active & 0 - Inactive

    2. Define condition with var on this formula for active/inactive selection

    <b><i>This is poss if you have dates as KFs. For char try following --</i></b>

    1. Define two formula (active indicator) just as =1 & another (inactive indicator) as =0.

    2. Define two selections as follows --

    ℹ️ Selection (Active) : Active Indicator restricted by Start date (<= var date) & End date (>= var date)

    (ii) Selection (Inactive) : Inactive Indicator restricted by End date (< var date)

    3. Define one more formula (Active/Inactive) as addition of the above two selections --- Active + Inactive

    so 1 - Active & 0 - Inactive

    4. Same as above Define condition with var on this formula for active/inactive selection

    Hide the formula/selections as per requirement.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.