cancel
Showing results for 
Search instead for 
Did you mean: 

Validation based on variable date

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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.