Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] Validation

$
0
0

Hi Rohan,

agree with Devendra that this is done by a filter in your aggregate, but suggested filter won't catch all overlap (if overlap is what you are looking for)

An existing record in the database that starts after the newly entered record, and stops before the newly entered record, won't be found with this filter.

this is a filter that will work to catch all overlap :

DB.FromDate < NewRecord.ToDate AND DB.ToDate>NewRecord.FromDate

OR, if a record is not allowed to start on the same day another stops :

DB.FromDate <= NewRecord.ToDate AND DB.ToDate>=NewRecord.FromDate

Dorine


Viewing all articles
Browse latest Browse all 1476385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>