Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
My first attempt at creating a webject in Windchill. I have a general understanding, but things just aren't coming together. I have the following jsp file located under an infoengine\jsp sub-directory. When I execute the JSP, I don't get any error messages, but I don't get any results either. What am I missing???
<%@page language="java"%>
<%@page import="wt.util.*"%>
<%@page import="wt.util.*, java.io.*"%>
<%@taglib uri="http://www.ptc.com/infoengine/taglib/core" prefix="ie"%>
<%
WTProperties wtprops = WTProperties.getLocalProperties();
String wtInstance = wtprops.getProperty("wt.federation.ie.VMName");
%>
<process name="Generate" report"=">
<description>Generates a report from the report template".</description>
<ie:webject name="Query-Objects" type="OBJ">
<ie:param name="INSTANCE" data="com.corning.na.kpwcdev.Windchill"/">
<ie:param name="TYPE" data="WCTYPE|wt.part.WTPart"/">
<ie:param name="ATTRIBUTE" data="name"/">
<ie:param name="WHERE" data="state.state='RELEASED"/">
<ie:param name="GROUP_OUT" data="PARTS"/">
</ie:webject>
<ie:webject name="Return-Groups" type="GRP">
<ie:param name="GROUP_IN" data="PARTS"/">
</ie:webject>
</process>
Any help is greatly appreciated.
Thanks,
James Little
CAD Admin
Corning Cable Systems
replace the return-groups section with this and give it a shot.
<ie:webject name="Display-Table" type="DSP">
<ie:param name="GROUP_IN" data="PARTS"/">
</ie:webject>
Regards,
Glen Herman
Sr Application Developer
Engineering And Technology
Trane Residential Systems
6200 Troup Hwy
Tyler, Texas, 75701
Change
<ie:param name="TYPE" data="WCTYPE|wt.part.WTPart"/">
to
<ie:param name="TYPE" data="WCTYPE|wt.doc.WTDocument|com.corning.Procedure"/">
then apply the where clause.
Search objects work very similar to Query Objects. One notable difference is Search Objects has Version arguments where Version="Latest" is useful.
Regards,
Glen Herman
Sr Application Developer
Engineering And Technology
Trane Residential Systems
6200 Troup Hwy
Tyler, Texas, 75701