cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Infoengine webject to get the BOM of all WT Part types

rkayasth
10-Marble

Infoengine webject to get the BOM of all WT Part types

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>
======================================================

0 REPLIES 0
Announcements


Top Tags