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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

creating windchill project in Java API

ptc-2976472
1-Newbie

creating windchill project in Java API

when creating a project in Java API, i get an error saying "table cannot be created because there is no template assigned to it". how do i assign a Template, category and phase to a project in Java API
1 REPLY 1

This should answer your question, but I would caution you may want to
provide some default value for every attribute of a project and not just
these.



Project2 p = Project2.newProject2();

p.setCategory(ProjectCategory.ENGINEERING);

p.setPhase(ProjectPhase.KICKOFF);

p.setContainerTemplate(); // this has to be queried or defined. It is of
type WTContainerTemplate which I believed is implementing the Mastered
interface.



David DeMay







_____
Top Tags