Quantcast
Channel: PTC Community : Unanswered Discussions - Windchill
Viewing all articles
Browse latest Browse all 3592

Infoengine webject to get the BOM of all WT Part types

$
0
0

Hello I*E experts,

 

I have the following webject, which gets me the parts (of a particular type ONLY) in the 1st webject and then its usage links in the 2nd part and finally joins them to give the consolidated output.
Now what is happening is it is just returning a single “type” of the part under the parent part “610K1000”, means it just returns the mech type of wtpart and not electrical or any other xyz types created under WTPart parent type. Means I am currently getting a truncated BOM and not full BOM
What is want that this webject should return all parts of all types under a parent WTPart, doing which will give me a full BOM.

======================================
<%@page language="java"%>
<%@taglib uri="http://www.ptc.com/infoengine/taglib/core" prefix="ie"%>

<ie:webject name="Query-Objects" type="OBJ">
   <ie:param name="instance" data="${@FORM[]INSTANCE[]}"/>
   <ie:param name="type"  data="wt.part.WTPart"/>
  <ie:param name="where" data="number='610K1000'"/>
   <ie:param name="group_out" data="part"/>
</ie:webject>
<!--  perform individual query-link calls for WTPartUsageLink   -->
<ie:webject name="Query-Links" type="OBJ">
   <ie:param name="instance" data="${@FORM[]INSTANCE[]}"/>
   <ie:param name="group_in" data="part"/>
     <ie:param name="type" data="wt.part.WTPartUsageLink"/>
   <ie:param name="group_out" data="uses"/>
<ie:param name="direction" data="uses"/>
        
</ie:webject>
<!-- concat the two output results together   -->
<ie:webject name="Concat-Groups" type="GRP">
   <ie:param name="group_in" data="part"/>
   <ie:param name="group_in" data="uses"/>
   <ie:param name="group_out" data="nav_results"/>
</ie:webject>
<!-- concat the search output and link results together, to make the output more similar to query-tree's -->
<ie:webject name="Concat-Groups" type="GRP">
   <ie:param name="group_in" data="part"/>
   <ie:param name="group_in" data="nav_results"/>
   <ie:param name="group_out" data="output"/>
   <ie:param name="class" data="wt.fc.WTObject"/>
</ie:webject>
======================================================


Viewing all articles
Browse latest Browse all 3592

Trending Articles



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