Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6199 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I think I'm over thinking things here. So I need help.

In tableA that has 2 fields Name, Status

In tableB, I have 2 fields. The first field has a value list that shows ALL TableA:Name.

I want the 2nd field to show TableA:Name where Status = "Active"

How do I do that?

Thanks in Advance.

Posted

Scott I hope you are ready for some tedious work. It's pretty annoying to achieve what you are asking because filemaker doesn't allow you to create relationships based on a constant.

Alright first thing you need to do is to create a field in TableB and make it a calculation whose result is "Active". Make sure you have the function evaluating to text. I always for get to change the stupid thing.

Once this is done you are going to have to create a relationship to TableA from TableB through this new field to the field TableA::Status. You are going to need a new Table Occurence to do this so just name it something like ActiveTableA.

Now that your have your relationship setup all you need to do is create the value list and select the field ActiveTableA::Name as what you would like to display.

It's a little convoluted but basically you create yourself a relationship to all the active TableA records and then display the name values. Good Luck!

  • 2 weeks later...
Posted

What if you have a table for Staff with a field called status (active, inactive). And that the staff code is entered in a number of tables (such as timesheets, payroll, holidays etc). For each of these layouts, only want active staff in the value list to display. If I understand your solution, do I have to create a TO (and therefore value lists) of active staff for each of the tables/layouts that use active staff codes?

Is there some other way where I can use just the one value list of active staff no matter which layout it is used on?

Thanks - Brent

  • 2 weeks later...
  • 3 months later...
Posted

Hi. I need to take this another step forward.

I have the filtered value list as described above. is there any way to have the filtered list be sorted the way I want it?

I thought I could add (to tableA) a number field "Order" and then have the list sort by Order. But I have to display "order" in int list, which will confuse people.

Hope that makes sense.

Thanks

This topic is 6199 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.