How to check if downstream view of the WT part exists?
Hi All,
I want to create a "Manufacturing" view for the part included in the Change task, but I want to do it only if it doesn't exist.
Now I use this code without checking. And I want to add something like " if Manufacturing view for obj ==null then"
wt.fc.QueryResult qr = wt.change2.ChangeHelper2.service.getChangeablesBefore((wt.change2.ChangeOrderIfc) primaryBusinessObject);
while(qr.hasMoreElements())
{
wt.fc.WTObject obj =(wt.fc.WTObject) qr.nextElement();
if(obj instanceof wt.part.WTPart)
{
wt.part.WTPart prt = (wt.part.WTPart) obj;
wt.part.WTPart ManufPart = (wt.part.WTPart)
ManufPart = (wt.vc.views.ViewManageable)obj, "Manufacturing")
wt.vc.views.ViewHelper.service.newBranchForView((wt.vc.views.ViewManageable)obj, "Manufacturing");
ManufPart = (wt.part.WTPart)wt.fc.PersistenceHelper.manager.store(ManufPart);
}
}

