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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Translate the entire conversation x

Java to change Name of WTDocuments

jfrankovich
11-Garnet

Java to change Name of WTDocuments

Hello all,

I have a need to change the Name field of a list of existing WTDocuments. (The document Names have the revision date appended to them and we want to remove this from the Name.) This will be time consuming if done manually through the WC interface, so I was hoping to find a way to use a Java method to do this directly from a list of objects.

Anybody done this before?
Thanks,
John
3 REPLIES 3

Hi John

I am foreseeing following actions.

1. Have all your documents numbers and names as comma separated in a
flat file.

2. Develop a Java method for parsing the flat file

3. For each number find the document object by using a query spec.

4. Once the doc is retrieved, rename the document using another java
method.

5. Maintain a log file for success/failure details.

Please let me know if you need any specific clarification in any one of the
steps above.



Thank you and have a great time.

Best Regards

Swamy Senthil

Principal Solutions Architect

973 216 0456(M); 973 324 2729(W); 866 908 6561(F)

Work Email: swamy.senthil@swasen.com

LinkedIn Profile:

You can use this method:

wt.doc.WTDocumentService.changeWTDocumentIdentity(WTDocument arg0, String arg1, String arg2, WTOrganization arg3) throws WTException, WTPropertyVetoException, UniquenessException



Here's the code you need!



http://windchilldev.livejournal.com/1070.html

Announcements

Top Tags