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.

isDeletable_Boolean

Featured Replies

I'm trying to make an "isDeletable_Boolean" calculation field and I can't quite wrap my head around it. I want to make sure that if the Institution_ID is used anywhere else in the database (which could be in students, courses, contacts, professors, etc.) you cannot delete the institution.

I've done this before but it has usually been much simple with just one referenced field using }:( If ( Count (student::constant) > 0 ; 0 ; 1 ). But now I need to check in many different places.

Thanks for any help.

UPDATE: Well, I solved it but my solution is definitely not very simple. I'm not sure if there's something out there that is simple.

Edited by Guest
Solved, although complexly

Try the attached sample. It may be simpler than what I have, but mine seems pretty simple.

institution.zip

Your calc of }:(

If (UsedCalc>1;0;1) will not work when there is only one related record, in which case it will flag it as delete. It should be (UsedCalc > 0; 0; 1 )

Also instead of two calc, you can use one calc simplified to:

not ( courses::InstID + professors::InstID + students::InstID )

Create an account or sign in to comment

Important Information

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

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.