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.

How to build Many-to-Many Recursion

Featured Replies

I could really use some help. I recently learned how to build the TOs needed for a one-to-many recursion, as such:

Table Occurrence: PRODUCT CATEGORY

Attribute: product_category_pk

Attribute: product_category_parent_pk

Table Occurrence: PRODUCT CATEGORY is duplicated in the Rel. Graph to create...

Table Occurrence: PRODUCT CATEGORY PARENT

Attribute: product_category_pk

which is related to...

Table Occurrence: PRODUCT CATEGORY

Attribute: product_category_parent_pk

then...

Table Occurrence: PRODUCT CATEGORY is duplicated AGAIN in the Rel. Graph to create...

Table Occurrence: PRODUCT CATEGORY CHILD

Attribute: product_category_parent_pk

which is related to...

Table Occurrence: PRODUCT CATEGORY

Attribute: product_category_pk

This seems to work. However, I need to build a Many-to-Many recursive Product Category classification system. I am really stuck.

I am not sure how to transform it into FileMaker TOs.

Before I spend weeks lost in space, I thought I would ask here. Basically the tables are:

PRODUCT CATEGORIES

Attribute: product_category_pk

PRODUCT CATEGORIES ROLLUP

Attribute: product_category_parent_pk

Attribute: product_category_child_pk

I have attached a PDF of my crude table sketch to hopefully give insight in what I am trying to do. Any help is appreciated.

Thanks,

David

_categorization.pdf

And you're already past reading this?

http://jonathanstark.com/recursive_data_structures.php

--sd

  • Author

Hi Soren,

Thank you for replying! Yes, I did read Jonathon's article on one-to-many recursions and have it basically functioning - see 1_to_many.pdf attached. I have not applied the scripts as he outlined - I will tackle those issues later.

I do not know how to build a many-to-many recursion. I was planning on trying to use his technique and modify it for a many-to-many, but I observed the following:

Where my TOs that require the many-to-many recursion, there are TOs before and after them. Does that mean that I have to duplicate the TOs after they are branched off into parent and child TOs to continue the logical chain of information? I am at a loss.

If I can get this functioning - I plan on using this as a "pattern" that I can apply in other areas where my entities require classification. Any help or insight is greatly appreciated. I have also attached my Rel. Graph to show what is going on. Hard to see - but best I could do in screenshot space.

Thanks,

David

1_to_many.pdf

rel_graph.pdf

  • Author

Recap: Soren - I can see that there is a section on many-to-many and I will delve into that - thanks. I guess when I read it - I thought I would not need a many-to-many anytime soon... HA!

I still think I have an issue though due to "where" my TO requiring the many-to-many sits in the "chain" and I am thinking that this branching will requiring duplicated TOs of the TOs after the branch. Sorry for inventing terminology here - just now sure how to say what I am thinking.

Has anyone done a many to many recursion that can shed some light?

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.