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

possible to ensure a unique, related field

Featured Replies

  • Newbies

Quick question: I will use the analogy of a book, with chapters. I have two tables, one called books, one called chapters. Each record in the books table is a book, and each record in the chapters table is a chapter in a specific book. I want to make sure that there is never more then one chapter with the same name in any given book, but that different books could have the same chapter name, for example:

Book 1: "A bedtime story"

Chapter 1: Introduction

Chapter 2: The End

Book 2: "A work story"

Chapter 1: Introduction

Chapter 2: The middle

Chapter 3: The end

So far so good. I want to make sure that this entry can not be made in either book:

Chapter 4: Introduction

I am creating the chapter records by using a portal that reverences a relationship between a unique id between chapters and books, the layout is set to "books" and the portal creates records in the chapters table.

What I have done is made a calculation field which is ::Book Name & Chapter Name, so in this case would be "Book1Introduction" - can I make sure that is unique? Ie, during data entry, can I make sure that a calculated value which is the result of a related field and a field on the current layout is unique?

What I have done is made a calculation field which is ::Book Name & Chapter Name, so in this case would be "Book1Introduction" - can I make sure that is unique? Ie, during data entry, can I make sure that a calculated value which is the result of a related field and a field on the current layout is unique?

You can't validate a calculation, but you can validate a Text field with an auto-enter calculation.

  • Author
  • Newbies

That worked great, thank you very much. :

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.