Skip to main content
1-Visitor
November 6, 2009
Question

creating windchill project in Java API

  • November 6, 2009
  • 1 reply
  • 649 views
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-Visitor
November 6, 2009
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







_____