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

Value List based on relationship


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

Recommended Posts

Posted

I have a Products table (Key - Product ID), a Product Attributes table (Keys - Product ID, Attribute ID) and an Attributes table (Keys - Attribute ID, Attribute Group ID).

My first Table Occurence from the Products table to the Attributes table goes via the Product Attribute table.

I have created a new Table Occurence using the relationship from Products Field 1 (calculation field - number) to the Attribute Group ID (number field) in the Attributes table in order to get "filtered" records (e.g. those available based on this Table Occurence)and want to attach a value list to Products Field 2 (number field).

I have defined the Value List to use values from this relationship to the new Table Occurence.

My problem is that although I can see the correct records if I use a portal, when I define the value list based on that relationship I'm getting a list that includes other existing records in the Attributes table; not the specific ones that would be based on the Field 1 relationship.

Am I missing something? Any advice?

Posted

What is your goal? A portal on the Product Form that shows all the Attributes for this product and that can be filtered by Attribute Group ID?

Posted

Sorry, I don't understand. Perhaps if you described your fields beyond "Field1" than I might figure out your goal here.

You might want to search for "conditional value lists" as what you say suggests that's what you are looking to do. Or, "filtered portals."

Posted

I've attached a file that hopefully gives you a better insight to my problem.

My feelings are that I've defined the value incorrectly, but can't immediately see why I'm not getting the list I wanted (see text on Products layout in attached file)

Thanks

Value_List_issue.zip

Posted

Here's a new version for you to take apart. I've reorganized your Relationship Graph to use the Anchor-Buoy method (it's a must for any project).

You were looking for what is called a filtered portal. You'll see on the products form layout two portals, one filtered by Attribute Group and the other showing all attributes for a product.

Value_List_issue2.fp7.zip

  • 2 weeks later...
Posted

Hi bcooney. Thanks for the example file. I think I need to expand upon my problem so I've spent the last few days trying to resolve this issue and have now created a file, which I've attached.

PROBLEM:

I want to be able to view a list of valid attributes from the Products table and then, by the use of another Value List, filter the valid attributes that appear in the portal by the First Word field (in Attributes)for a portal to show only the related records. The value list should only list those attributes that exist as valid (e.g. Deleted = 0) and the list - based on my example file - should be as follows;

Blue

Red

Pink (not Yellow as this has been deleted)

I then intend to select a record from this portal to create Product Attributes based on this final list.

At the moment I can't get my head around the relationship required that gives me the result I'm after.

related_value_lists.zip

Posted

I changed your relationship for the second portal. As for matching on the word, don't. When you create your value list, still include the Attribute ID and the word (just show the second value so the user only sees the word), but store the AttributeID. You'll need a related value list from Products.

related_value_lists2.zip

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.