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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Get all attributes values?

VasiliyRepecki
12-Amethyst

Get all attributes values?

Hi.

Is it possible to get values of all attributes of windchill object? If i don't know inner name of any attribute.

Thanks.

2 REPLIES 2

Hi!

This is possible.

Run this code in info Engine Task Editor.

<%@page language="java"%>

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

<%

String obid = (String)getParam("obid");

%>

<ie:webject name="Query-Objects" type="OBJ">

<ie:param name="INSTANCE" data="windchill" delim="!" valueSeparator="!" default="<%=com.infoengine.au.NamingService.getVMName()%>"/>

<ie:param name="TYPE" data="wt.doc.WTDocument"/>

<ie:param name="ATTRIBUTE" data="*"/>

<ie:param name="OBJECT_REF" data="$(@FORM[]obid[])"/>

<ie:param name="GROUP_OUT" data="returnAttributes"/>

</ie:webject>

If you want to do more programming in Pdmlink 10 i'd advise you to contact sulis gmbh. They have a quite good framework to seamlessly accessing windchill attributes without worrying wether you use an iba, typed attribute or modelled attribute.

http://www.sulis.de/javadoc/ext/sulis/class-use/AttMagic.html

Announcements


Top Tags