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

How to get WTPartUsageLink attributes using InfoEngine* webjects?

smorla
9-Granite

How to get WTPartUsageLink attributes using InfoEngine* webjects?

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,

3 REPLIES 3

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.

Announcements
Learn more about how we are using our browser poll here