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
Hi,
I would like to get the WTPartUsageLink attributes like Quantity, Reference Designator, Unit etc, using InfoEngine webject.
I referred to this solution and used it to get the attributes - but the values returned are always null.
How should these attributes be retrieved using webjects?
Thanks in advance,
Could you paste your I*E tasks? Something like this should work
<ie:webject name="Query-Objects" type="OBJ">
<ie:param name="instance" data="<%=instance%>"/>
<ie:param name="type" data="wt.part.WTPart"/>
<ie:param name="where" data="number='XXXXXX'"/>
<ie:param name="group_out" data="part"/>
</ie:webject>
<ie:webject name="Query-Links" type="OBJ">
<ie:param name="instance" data="<%=instance%>"/>
<ie:param name="group_in" data="part"/>
<ie:param name="auto_navigate" data="false"/>
<ie:param name="output_type" data="OTHER_SIDE"/>
<ie:param name="group_out" data="uses"/>
<ie:param name="type" data="wt.part.WTPartUsageLink"/>
<ie:param name="direction" data="uses"/>
</ie:webject>
<ie:webject name="Return-Groups" type="GRP">
<ie:param name="uses" data="output"/>
</ie:webject>
Hi,
This gives me some of the attributes, but not all. Quantity, Unit etc are still not retrieved.
I saw another thread and found that changing the parameter "output_type" to "full" gives all the attributes.
Thank you for the help.
That's correct. For querylink webjects, quantity and other link attributes will not be returned if you don't specify output type to full. the default is other_side which just returns the object it is linked to.