View all generation on query definition child parent

Hello, how can I display all generations of my Part by applying a filter in my query definition? I'm in the case of a child-parent relationship.
I read the builder guide but the examples are mostly in the parent-child direction.I work on Aras 22.Thank you.

Parents
  • Hi Nico,

    You should be able to apply a condition on the top-level part like `generation > 0` in order to get all generations the Parts.

    Depending on your exact use case, this may come with a caveat. I think what you're trying to do is see the full BOM structure for each generation of the top-level Part. In order to do that, you couldn't re-use the top-level element to do your recursive query or else you'd end up with a messy BOM structure containing every version of the child Parts as well. However, this is easily resolved by keeping the top-level part separate and using recursion on the Part BOM relationship like the example below:

    Hope this helps!

Reply
  • Hi Nico,

    You should be able to apply a condition on the top-level part like `generation > 0` in order to get all generations the Parts.

    Depending on your exact use case, this may come with a caveat. I think what you're trying to do is see the full BOM structure for each generation of the top-level Part. In order to do that, you couldn't re-use the top-level element to do your recursive query or else you'd end up with a messy BOM structure containing every version of the child Parts as well. However, this is easily resolved by keeping the top-level part separate and using recursion on the Part BOM relationship like the example below:

    Hope this helps!

Children