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
Hi All,
I am trying to create WTpart by using "Create-Object" webject.
When i try to execute this, getting below exception :
(wt.folder.folderResource/5) wt.folder.FolderException:
Object "TOP_PARENT" must be assigned to a folder.
Kindly help me to solve this.
Regards,
Vivek
Here is my task file,
=========================================
<%@page language="java"%>
<%@taglib uri="http://www.ptc.com/infoengine/taglib/core" prefix="ie"%>
<%!
static final String[] PART_NAMES={"TOP_PARENT","PARENT_A","PARENT_B","PARENT_C","CHIELD_PARENT_A","CHIELD_PARENT_B","CHIELD_PARENT_C","CHIELD_PARENT_D"};
%>
<ie:webject name="Query-Objects" type="OBJ">
<ie:param name="INSTANCE" data="$(@FORM[]supporting-adapter[*])" delim="!" valueSeparator="!" default="<%=com.infoengine.au.NamingService.getVMName()%>"/>
<ie:param name="GROUP_OUT" data="product"/>
<ie:param name="TYPE" data="wt.pdmlink.PDMLinkProduct"/>
<ie:param name="WHERE" data="name=PuneProduct"/>
</ie:webject>
<%
for(int i=0;i<PART_NAMES.length;i++){
%>
<ie:webject name="Create-Objects" type="ACT">
<ie:param name="INSTANCE" data="$(@FORM[]supporting-adapter[*])" delim="!" valueSeparator="!" default="<%=com.infoengine.au.NamingService.getVMName()%>"/>
<ie:param name="CONTAINER_REF" data="$(product[]obid[])"/>
<ie:param name="FIELD" data="folder.id="/>
<ie:param name="FIELD" data="name=<%=PART_NAMES[i]%>"/>
<ie:param name="TYPE" data="wt.part.WTPart"/>
</ie:webject>
<%
}
%>
==========================
Hi,
Have you got any solution for this?