Quantcast
Channel: PTC Community: Message List
Viewing all articles
Browse latest Browse all 12488

[IM] query-question for multilevel relationships between items

$
0
0

Hi @all,

 

in the attached picture you can see a structure, how items in our changemanagement could be linked via relationship fields. All items are the same itemtype, and its also always the same relationship field. Items can have different specifications, so the item at the top is in most cases a "library" and in the middle there could be "packages" and at the bottom there are "modules".

 

The following relationships are possible:

 

library -> package

library -> module

package -> package

package -> module

 

So how we can build a query which returns all libraries, which have a relationship (direct or not) to modules with a certain state? All what i found is the possibilty to filter over direct relationships to the next level in this structure, but not over 3 or 4 level. And also i didnt see a way to do this with subqueries.

In a pseudo-query i would say:

 

Give me all libraries (which have modules in state A) or (which have packages which have modules in state A) or (which have packages which have packages (which have modules in State A))

 

I know that reports could give us multilevel relationship filter, but thats not what we need...

 

I really would appreciate any hint...

 

thanks, Jens

 

structure.png


Viewing all articles
Browse latest Browse all 12488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>