Forum Discussion
HI Brenton,
I really wished Aras would have the possibility to pass a level index with these kind of queries. See my question here... :-D :
Do you know how much levels you have (fixed number of levels)? Then you could use an xpath selector. I don´t have proper sample at hand right now, but try something like this:
var level2items = item.getItemsByXPath("Relationships/Item[@type='Part BOM']/related_id/Item[@type='Part']");
var level3items = item.getItemsByXPath("Relationships/Item[@type='Part BOM']/related_id/Item[@type='Part']/Relationships/....;
Search for better samples regarding xpath. Not sure if the above one works.
If you just need all items are related at all, something simpler would work:
var allItems= item.getItemsByXPath("//Item[@type='Part']");
- Breton4 years agoIdeator III
ok, thanks
I will test.
Thanks a lotFB