<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to trigger relationship server event when parent item is copied?</title><link>https://www.aras.com/community/f/development/5873/how-to-trigger-relationship-server-event-when-parent-item-is-copied</link><description>Hi community, 
 maybe somebody know a solution for this use case. 
 I use a Method in the ItemType &amp;#39;Part BOM&amp;#39; that is triggered by an onAfterAdd and onAfterDelete event. The Method updates an integer property that indicates how often the corresponding</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to trigger relationship server event when parent item is copied?</title><link>https://www.aras.com/community/thread/2686?ContentTypeID=1</link><pubDate>Fri, 15 Mar 2019 15:35:56 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:76b3f6b7-b0df-42ec-8079-2f9b673ea14b</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Hi Chris,&lt;/p&gt;
&lt;p&gt;I really like the idea of using federation for this kind of tasks. Some weeks ago I tried a similar calculation concept for dispaying tab content indicators. But somehow the calculation conflicted with regular database operations.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;While displaying the federated values worked fine, in my case it was impossible to lock a part. When locking a part,&amp;nbsp;I ran into a timeout error. I assume the combination of &amp;#39;trigger the calculation&amp;#39; and &amp;#39;get the item&amp;#39; produced this effect. Or maybe there was a problem with circular references.&amp;nbsp;&lt;span style="font-family:inherit;"&gt;I just made a quick test of the concept. For the tab indicators the use of&amp;nbsp;real-time calculation was too time consuming.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regarding this topic,&amp;nbsp;thanks for testing this one! I was able to create a more or less simple method that i can use for onAfterCopy and onAfterVerison events. It turned out, that versioning an item also doesn&amp;acute;t update the BOM counter. &lt;br /&gt;Even copying larger now BOMs works well, so I am happy with the current workaround.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to trigger relationship server event when parent item is copied?</title><link>https://www.aras.com/community/thread/2682?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2019 20:30:42 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:2cdd2dd0-bd25-4a4a-bfd5-f0ab159fc423</guid><dc:creator>Christopher Gillis</dc:creator><description>&lt;p&gt;Hi Angela,&lt;/p&gt;
&lt;p&gt;I can reproduce this error on my local instance of 11.0 SP15. Looking through our internal list of issues, it seems that this is behavior that is seen before and is still being scheduled to be fixed.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the meantime, I think your suggestion of adding an onAfterCopy method to the parent ItemType is the best workaround for now.&lt;/p&gt;
&lt;p&gt;There are a few other alternatives such as making this &lt;b&gt;counter&lt;/b&gt;&amp;nbsp;property a federated property and calculating it each time a Part BOM is retrieved from the database. While this would resolve the issue you&amp;#39;re seeing, it would also slow down the process of opening and editing parts to the extra time needed for that calculation.&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;
&lt;p&gt;Christopher Gillis&lt;/p&gt;
&lt;p&gt;Aras Labs Software Engineer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>