Question

Copy of document connected to routing operation

  • 10 November 2021
  • 1 reply
  • 83 views

Userlevel 3
Badge +8

In Apps8, I realized that if a document is attached to a routing operation work guideline, when creating a new routing alternate or a new revision from a routing, this connection is copied. 

And even when using the “copy part” assistant, the connection “document/RoutingOperWorkGuide” is copied to the new part. 

On the contrary, if I attach a document directly to a routing operation, this connection is not copied to any new part, routing revision or alternate. Is it a bug ?

 

On the basis of the above point, is it possbile to call this function “document connected” in a custom event in order to copy the doc connection when it is attached to a routing operation ?

 

Thanks for your help


1 reply

Userlevel 7
Badge +30

Hi,

It is possible to copy a document attachment when a document is attached to a routing operation, using a custom event. It might require some tricks though, since you want to create a new record in the same table as the custom event triggers on. This creates the "mutating table" problem. But there are solutions for this if you search this site.

A better solution however, that works in most cases, is to use Object Connection Transformation (OCT). It's a feature you are probably already using. Have a look at the very detailed documentation on this topic as well as any existing OCT rules you might have.

If you cannot sort it out, show us what you tried, and what happened and what did not happen, and we will try to help out.

Good luck!
 

Reply