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

LoadFromFile: Creating a Soft-Type of WTDocument with a Primary content and multiple Secondary contents

SOLVED
Highlighted
Newbie

LoadFromFile: Creating a Soft-Type of WTDocument with a Primary content and multiple Secondary contents

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

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions

Re: LoadFromFile: Creating a Soft-Type of WTDocument with a Primary content and multiple Secondary contents

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

View solution in original post

3 REPLIES 3

Re: LoadFromFile: Creating a Soft-Type of WTDocument with a Primary content and multiple Secondary contents

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

View solution in original post

Re: LoadFromFile: Creating a Soft-Type of WTDocument with a Primary content and multiple Secondary contents

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

Re: LoadFromFile: Creating a Soft-Type of WTDocument with a Primary content and multiple Secondary contents

<?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>

Announcements
LiveWorx Call For Papers Happening Now!