Manstone Posted August 28, 2005 Posted August 28, 2005 Hello there, I have 3 tables: record, style and category. The category table is many to many relationship with the foreign keys of the two others tables. How can I have a field in the record table which contain all the related style separate by a ",". For exemple: rock, pop/rock, aor. Many thanks for helping me. Dom
RalphL Posted August 28, 2005 Posted August 28, 2005 Do you need this list in addition to the portal? A portal to category will show the styles. Otherwise you will have to setup a related value list. Then use the function ValueListItems to get a list. Then subsitute a comma for the the returns in the list.
Manstone Posted August 28, 2005 Author Posted August 28, 2005 Thanks Ralph. Yes, it's in addition. But could you explain to me a little bit more. Which table must have the self-join relationship for the related value list? It's so confused for me, because the category table contain only the foreign keys of record and style tables. Many thanks for your help
RalphL Posted August 29, 2005 Posted August 29, 2005 Lets assume a very simple relations graph. Record -> Category -> Style When you setup the value list selete "Use values from field". Then select the field from Style. Then select "Include only related values from" And the select Record for the from.
Recommended Posts
This topic is 7027 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 accountSign in
Already have an account? Sign in here.
Sign In Now