Skip to main content
1-Visitor
April 18, 2012
Question

Change Request Attachments

  • April 18, 2012
  • 1 reply
  • 663 views

Hi All,

Does anyone have example code on how to programmatically determine an ECR's attachments, and if possible download?


Thanks

Jim Van Dragt
PLM Architect
Information Technology

hermanmiller.com
616 654 5285 OFFICE
616 836 8394 MOBILE

HermanMiller

1 reply

20-Turquoise
April 18, 2012
On 04/18/12 12:46, Jim VanDragt wrote:
> Hi All,
>
> Does anyone have example code on how to programmatically determine an ECR's attachments, and if possible download?

Not exactly what you are looking for but maybe this will help. This code (from
an expression robot in my Change Notice Workflow) determines the primary
business objects associated with an ECN:

wt.fc.QueryResult resultantObjects =
wt.change2.ChangeHelper2.service.getChangeablesAfter((wt.change2.ChangeOrderIfc)primaryBusinessObject);
while(resultantObjects.hasMoreElements())
{
     wt.fc.WTObject object = (wt.fc.WTObject) resultantObjects.nextElement();
     if(object instanceof wt.epm.EPMDocument)
     {
         wt.epm.EPMDocument epmDoc = (wt.epm.EPMDocument)object;
         //do something with this
     }
}

>
>
> Thanks
>
> Jim Van Dragt
> PLM Architect
> Information Technology
>
> hermanmiller.com
> 616 654 5285 OFFICE
> 616 836 8394 MOBILE
>
> HermanMiller
>
>      
> ----------     


--
------------------------------------------------------------------------
Randy Jones
Systems Administrator
Great Plains Mfg., Inc.
1525 E North St
PO Box 5060
Salina, KS USA 67401
email: -
Phone: 785-823-3276
   Fax: 785-667-2695
------------------------------------------------------------------------