Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
Hi, Good Day to all
I have a requirement for Customization of promotion request in WindChill 10.1 M030.
In a lifecycle while promoting the parts and documents from one stage to another stage, parent part and associated child parts can be in different stages.
At any given point of time child part or document should not be ahead of the parent stage.
I am facing some problems while development
Please provide me some solution.
Thanks,
Shaikkh.
HI Shaikkh,
The following code is useful for getting child documents
wt.fc.QueryResult qr = wt.doc.WTDocumentHelper.service.getHasDependentWTDocuments(primaryBusinessObject);
while(qr.hasMoreElements())
wt.doc.WTDocument doc = (wt.doc.WTDocument)qr.nextElement();
To get child part
WTPartHelper.service.getUsedByWTParts(part.getMaster());
Insie WTPartHelper.service check all the methods you will get methods to get describeByDocuments , parentPart, childPart etc.