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

Value list based on table related to another table


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

Recommended Posts

Posted

I know that the topic of dynamic value lists is a frequent one, but I haven't been able to find an answer to my specific situation:

I have a table called "MainContactInfo" that contains names and contact information for individuals. Each individual can be assigned an employer that the user selects from a pop-up list via a value list generated from the contents of a field in a related "Employers" table. (The tables are related by a PersonID.) The "Employers" table in turn is related to an "Offices" table (by an EmployerID). Each record in the "Employers" table can have multiple offices.

What I want to happen is for the user, while entering a record in the "MainContactInfo" table, to be able to select an employer via the pop-up list and then to be able to select an office via a second pop-up list, with the office pop-up list only displaying the list of offices relevant to that particular employer.

I hope that this makes sense and that someone will be able to suggest a solution.

Posted

Good question and it does make sense. Set up every possible combination of offices in a separate value list in the Employer table. Then flag each record of the Employer table with the corresponding value list. Then use that code in a calculation with valuelistitems to display the correct value list for that employer in the Employee table.

Posted

Thanks for a quick reply, transpower!

I have a sense of what you are suggesting, but remain a bit confused as to the specifics. Are you saying that I should manually create a different value list in the Employer table for each employer and then somehow designate in the employer's record which value list is appropriate? I'm probably completely misconstruing your advice.

I've attached a sample file. Would you be able to show me a bit more exactly what you mean? Thanks for your help.

Set up every possible combination of offices in a separate value list in the Employer table. Then flag each record of the Employer table with the corresponding value list. Then use that code in a calculation with valuelistitems to display the correct value list for that employer in the Employee table.

EmployeesDatabase.fp7.zip

Posted

Not quite. Set up all possible value lists for the various combination of offices you have (not one for each employer). Assign a code for each value list (like v1, v2, v3, etc.); put that code as a field in each record in Employer. Then, in the Employee table, use that code and the valuelistitems function to display the correct value list for that employer.

This topic is 7277 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.