Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Vield Validation

Featured Replies

I've never actually used the Calculation part of field validation, but here's what I'm wanting to do.

I have a tasks table, inside that table I have a Date Field, a Start Time Field, and an End Time Field.

No records start time and end time can overlap another records. And I need a way to check for that. Sure, I could use a script to do this, searching by date and then checking the times recrod by record.

But then I got to thinking about List and GetNthRecord functions and wondered if this might be possible in a calculation. Just wondering what a few of the more experienced users think here.

I think I would define a self-join relationship between overlapping records, excluding the current record (by adding SerialID ≠ Overlap::SerialID). Then you can validate by

not Overlap::SerialID

I think I would define a self-join relationship

Wouldn't it be self-joins in plural, since stacking with OR havn't found it's way into relations def... ?

--sd

timespans.zip

Ah! Yes - DeMorgan....

--sd

  • Author

Brilliant comment. I still don't quite understand how the "not Overlap::SerialID" is how it validates though. Mind dumbing it down a bit for me :/

"not Overlap::SerialID" means there's no related record in the Overlap TO. Unless you do have a record that overlaps, but it doesn't have a SerialID, or has a zero as its SerialID value.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.