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.

Filtered value lists with multi field relationship...

Featured Replies

I have a People table with a Roles field with "staff", "faculty" and "students" in it using checkboxes.

I can create value lists off of this table filtered by role. No problem. But I also have the field Status denoting Active Faculty.

When a constrain the relationship by two fields, it breaks.

Is it possible to do a value list filtered by both fields? Should I just write a script to do a find, then copy the table, and base the value list on that table?

Thanks!

-Jeff

So, a person can have many roles? Can they be active for one role, and inactive for another?

Edited by Guest

  • Author

So, a person can have many roles? Can they be active for one role, and inactive for another?

No... they can have a role, and they can be active or not.

The problem is, once I add the second constraint on the relationship, it breaks.

I'm thinking the way around this is that if someone is inactive, they simply have NO role.

But still, I figure there should be a way around this.

-Jeff

That's much easier. I just cobbled thru a demo where people can have many roles and have separate statuses (?) for each.

Let me change it to your much more simple reqs. Hang on..

  • Author

Take a look at this. I just did Faculty.

Thanks so much! I will examine it in detail and get back to you.

  • Author

Well dang! What you did works!

I had the tables backwards (I had an occurrence of the global table for each value list combo) and I've fixed that but things still aren't working. I still get "Index missing". I'm still looking for things I've missed.

But... in Table A, why do you have these non-global fields:

_kP_TableA_ID

_kF_Faculty_ID

_kF_Student_ID

_KF_Staff_ID

They don't seem to do anything, but I'm wondering if I'm missing something here.

Thanks again!

-Jeff

Well, what I was missing is what are you doing with these values lists? I assume you have another table that your are assigning these people IDs. I made up a table, "TableA".

In TableA, your ultimate goal is to store the personID for each of the roles. That's what the foreign keys "_kF..." are.

Maybe if you describe the tables that you have, we can stop working in the hypothetical.

As for , that could be an indication that you are trying to include an unstored calc field in a value list. Since an unstored calc cannot be indexed, it cannot be used in a value list.

Why not complete the demo file? Try to create the value list for Staff.

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.