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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Custom Webject not working as expected

RG_10893406
4-Participant

Custom Webject not working as expected

I am using Windchill PDMLink Release 12.1 and Datecode with CPS 12.1.2.0

I have created two webjects one is Search-Objects and another is custom webject. I'm passing the object id to the custom webject as input and I am getting the actual value as a output. But the issue is, in the output result only for the last object the custom value is showing not for others.
3 REPLIES 3

 

RG_10893406_1-1721979788255.png

 

 

@RG_10893406.. can you upload the two webjects you are using?

From Search-Objects webject im getting the parts details, and Context-Name Webject is the custom webject which we have created. Using Return-Group webject im combining both webject data. But the data is not combining. The custom data is showing for only the last object.

 

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

<ie:webject name="Search-Objects" type="OBJ">
<ie:param name="INSTANCE" data="$(@FORM[]supporting-adapter[*])" delim="!" valueSeparator="!" default="<%=com.infoengine.au.NamingService.getVMName()%>"/>
<ie:param name="TYPE" data="wt.part.WTPart"/>
<ie:param name="attribute" data="obid,number,name,version,lifeCycleState,containerReference" delim=","/>
<ie:param name="GROUP_OUT" data="objectSearched"/>
</ie:webject>

<ie:forEach groupIn="objectSearched" groupOut="Obj">
<ie:webject name="Context-Name" type="EXT" use="ext.customWebject.ExampleCustomWebject">
<ie:param name="COLUMN" data="obid"/>
<ie:param name="GROUP_IN" data="Obj"/>
<ie:param name="GROUP_OUT" data="ActualResult"/>
</ie:webject>
</ie:forEach>

<ie:webject name="Return-Groups" type="GRP">
<ie:param name="GROUP_IN" data="objectSearched"/>
<ie:param name="GROUP_IN" data="ActualResult"/>
</ie:webject>

Top Tags