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.

Catch 22: Indexed can't be unstored

Featured Replies

I've found some useful threads explaining how to use multikeys in relationships, specifically how to use multiple calc fields as foreign keys. For example, one of these calc fields called cEnrollment might look like this:

GetNthRecord(students::studentName;1)&"¶"&

GetNthRecord(students::studentName;2)&"¶"&

GetNthRecord(students::studentName;3)&"¶"&

"ANY"

Here's my problem: Because the calc field must be indexed in order to be part of a foreign key, it can't be unstored. Consequently, whenever a student name is added or modified in the data entry layout, the cStudentList calc field does not 'get updated' with the new info. This is a problem for me, because obviously I need the student names in the calc field (foreign key) to accurately reflect the list of students in the data table. How can I remedy this?

Hope my post makes sense. Show some mercy please, I'm not an expert :)

Thanks in advance for your suggestions--

Let talk about what you are trying to achieve here first. What is the purpose of this calc?

  • Author

I want to set values in global fields (primary keys) in order to filter the contents of a portal.

The parent side does not need to be indexed. So if you are trying to filter out a portal, the global field would hold the values that you want to relate to the child records.

I want to set values in global fields (primary keys) in order to filter the contents of a portal.

That's just how you're using Filemaker to accomplish something. What are you trying to do in context of the "real world".

What are the tables involved and what do they represent? Students is one obviously. What are the others that are involved in your problem? What do they represent? How are they related?

You're right, to do what you're asking requires indexing an unstored field, and that's impossible, but there's probably another way to accomplish the feature you're trying to add.

  • Author

Thanks for your replies--much appreciated. I will post a sample file next week so I can explain better.

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.