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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

How to get WTPartUsageLink attributes using InfoEngine* webjects?

smorla
11-Garnet

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
BineshKumar1
13-Aquamarine
(To:smorla)

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.

BineshKumar1
13-Aquamarine
(To:smorla)

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

Top Tags