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.

Featured Replies

Hi all.

I am trying to write a database which will track restaurant reservations which include customer names, reservation times, what table they are assigned to and what seat they have been assigned to. I am having problems coming up with a way to make the database create an error message when two customers at one table have been assigned the same seat. Is there a way to script this? As it stands right now, each reservation has it's own record and each customer has their own related record in a customers table, so essentially it needs to check all the customers per reservation.

I apologize if I posted to the wrong forum. Any help appreciated :D

See if this helps:

http://fmforums.com/forum/showtopic.php?tid/198229/post/303839/#303839

  • Author

hi comment. is this the only way to do this? perhaps through a validation calculation? i want the custom error message to include the other customers name who has been assigned the same seat. i am not sure what i would replace in your example that would yield the same results i'm looking for. still though, thanks for your help!

I am not sure what exactly you are asking. The relationship is the only way a reservation record can "know" it has a conflicting sibling. Without it, you would need to perform a find each time you create/modify a reservation.

Once you have the relationship in place, it's up to you how you want to handle the conflict when it happens. A custom validation message cannot be calculated, so if you want to provide a link to the conflicting record, you will need to look for some other way - e.g. placing a big red related field on the layout.

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.