Skip 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.

Validating by calculation on related field

Featured Replies

Hi everyone. I have been messing around with this for hours and it just won't work!! I'm starting to think I'm missing something incredibly obvious.

To simplify things, I have a field called 'status' in a table called 'serviceEvents'. I then have another field called 'routeDate' in a table called 'Routes'.

Essentially, UNLESS the job in 'serviceEvents' is currently on a Route, and hence in the 'Routes' table, I want it to only allow the status field to have the value of "incomplete". Otherwise, I want it to allow "Incomplete" or "Complete" (thinking about the problem logically, it wouldn't make sense to mark a job as complete that has never been on a route - and hence can't BE complete!!).

I never seem to manage to do this. I can display the related field, and it works. I have run tests eg: if routes > 0 show a certain dialog box on a test script and that worked aswell.. However, no matter how I reference the field in a validate via calculation field, it just doesn't work.

Any suggestions??

Best Regards,

Jason V.

Validation calculations can be done different ways, and can be tricky. In this case I'd do a "negative" test for the "not" conditions, explicitly producing a 0 (fail), but anything else is OK.

Case ( IsEmpty (Routes::routeDate) and Status = "Complete"; 0; 1 )

// or, for you minimalists

not ( IsEmpty (Routes::routeDate) and Status = "Complete" )

Edited by Guest
minimalists

  • Author

That worked like a charm. Thanks for the help... Would have spent countless more hours trying this otherwise :B

Best Regards,

Jason V.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.