Community Tip - You can change your system assigned username to something more personal in your community settings. X
Hi Gurus,
We are in a process of migrating data from a Legacy system to ProjectLink.
We have a scenario where we want to create soft types of WTDocument with primary and multiple secondary contents using "wt.load.LoadFromFile" utility
Is it possible to create a Soft-Type of WTDocument with a Primary and multiple Secondary contents using "wt.load.LoadFromFile" ?
If Yes, Kind request to share details
-Pradeep Shinde
Solved! Go to Solution.
Adding
<csvContentFile handler="wt.load.LoadContent.createContentFile" >
<csvuser>username</csvuser>
<csvpath>secondary file location</csvpath>
</csvContentFile>
at the end of the XML resolved the issue
Adding
<csvContentFile handler="wt.load.LoadContent.createContentFile" >
<csvuser>username</csvuser>
<csvpath>secondary file location</csvpath>
</csvContentFile>
at the end of the XML resolved the issue
Hi Pradeep,
I am facing same scinario..
do you have sample csv and XML file for creating WTDocument with Primary and Seconadray Content ?
Please share, it will be grate help for me..
Thanks,
Vivek
<?xml version="1.0" ?>
<!DOCTYPE NmLoader SYSTEM "standardX20.dtd">
<NmLoader>
<csvBeginWTDocument handler="wt.doc.LoadDoc.beginCreateWTDocument" >
<csvname>Name of SoftType Load - 01</csvname>
<csvtitle>Title of SoftType Load - 01</csvtitle>
<csvnumber>NUM:SoftType-01</csvnumber>
<csvtype>Document</csvtype>
<csvdescription>description 1112-002</csvdescription>
<csvdepartment>DESIGN</csvdepartment>
<csvsaveIn>/Default/Folder1</csvsaveIn>
<csvteamTemplate></csvteamTemplate>
<csvdomain></csvdomain>
<csvlifecycletemplate></csvlifecycletemplate>
<csvlifecyclestate></csvlifecyclestate>
<csvtypedef>"internal name of your soft type "</csvtypedef>
<csvversion></csvversion>
<csviteration></csviteration>
</csvBeginWTDocument>
<csvIBAValue handler="wt.iba.value.service.LoadValue.createIBAValue" >
<!-- Use Name of global attribute not the internal name as csvdefinition -->
<csvdefinition>Author</csvdefinition>
<csvvalue1>User2</csvvalue1>
<csvvalue2></csvvalue2>
<csvdependency_id></csvdependency_id>
</csvIBAValue>
<csvEndWTDocument handler="wt.doc.LoadDoc.endCreateWTDocument" >
<csvprimarycontenttype>ApplicationData</csvprimarycontenttype>
<!-- You should keep your primary content inside <Windchill Home>\Windchill\loadFiles\content -->
<csvpath>EGadWork.xls</csvpath>
<csvformat></csvformat>
<csvcontdesc></csvcontdesc>
<csvparentContainerPath></csvparentContainerPath>
</csvEndWTDocument>
</NmLoader>