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.

Related Record Validation

Featured Replies

OK, I have another question. Is there a way to validate the data in a field as unique, but based on a set of related records in a table?

For example, in my Contacts database, I have a separate related table for "Addresses", so that I can store multiple addresses for each contact. The records in the Addresses table are related to the Contact record by a "Client ID" number. Now, for each address record in the Addresses table, I also have a "Type" field to label each address (e.g. Home, Business, etc.). What I am trying to do is make sure that the values in that "Type" field are unique to that particular Client ID. So, Client "A" might have a "Home" and a "Business" address and Client "B" could also have a "Home" address. I would like the behavior to be such that if you tried to enter a new address for Client "A", it would not allow you to use a value that you have already used for that client (in this case, Home or Business). If I turn on unique validation for the field, it applies to all records in the table. So, in this example, only one client could have a "Home" address type.

Any ideas? Thanks in advance.

Scott

Edited by Guest

The table from which you pluck Addresses, could be driven by other and more sophisticated relationtypes than cartesian product type.

You can based on what's already in the recieving portal make a valuelist act as a relational primary key for the plucking portal, to strain the showed records.

It's almost accomplished by the relational graph only, by duping TO's accordingly, just except an single unstored calc'field that generates the multilinekey for the straining is required beyond the graphing.

But it doesn't make much sense if I made you a template, if you havn't embraced the relational approaches fully with filemaker 7+ yet. So poke into the Migration Foundations Whitepaper and read on!

http://www.filemaker.com/downloads/pdf/techbrief_fm8_migrtn_found.pdf

--sd

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.