<?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>What&amp;#39;s the event in relationship item type when we user save as function?</title><link>https://www.aras.com/community/f/development/6094/what-s-the-event-in-relationship-item-type-when-we-user-save-as-function</link><description>We have an item type have one relationship item type, We want to modify the relationship item type&amp;#39;s property value when user use the Save As function. 
 We have tested that the event onbeforecopy only work in parent item type, doesn&amp;#39;t work in relationship</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: What's the event in relationship item type when we user save as function?</title><link>https://www.aras.com/community/thread/3056?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2019 07:24:37 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:727e7c85-9a38-457e-82f8-3467ab78edc9</guid><dc:creator>tenny</dc:creator><description>&lt;p&gt;Hi Angela,&lt;/p&gt;
&lt;p&gt;Thanks a lot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What's the event in relationship item type when we user save as function?</title><link>https://www.aras.com/community/thread/3055?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2019 07:00:06 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:1c80e6f2-58a8-4029-808e-d5ec5e0d875f</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Hi tenny,&lt;/p&gt;
&lt;p&gt;ah, my first advice wasn&amp;acute;t correct. onCopy events are just triggered on the items where you apply the &amp;ldquo;Save As&amp;rdquo;. Additional onCopy events in the relationships will not be considered. You need a different approach to solve this one:&lt;/p&gt;
&lt;p&gt;Example: I use an onAfterCopy Event for solving the following use case: If a Part is copied,&amp;nbsp;some Part properties and the&amp;nbsp;Part Goal relationships shall be reset to zero. For solving this purpose, I added an onAfterCopy server event in Part, that also covers the relationships:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://gist.github.com/AngelaIp/eadc237ae3369fc90f7002f439c39735"&gt;https://gist.github.com/AngelaIp/eadc237ae3369fc90f7002f439c39735&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Ciao&lt;/p&gt;
&lt;p&gt;Angela&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What's the event in relationship item type when we user save as function?</title><link>https://www.aras.com/community/thread/3053?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2019 00:29:29 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:a6c3ee7c-e72a-4a3f-a5f0-493f64d58d58</guid><dc:creator>tenny</dc:creator><description>&lt;p&gt;Hi Angelalp,&lt;/p&gt;
&lt;p&gt;I definied the onbeforecopy event in related item .For example, I have a item type A and have a relationship A_detail ,&lt;/p&gt;
&lt;p&gt;We want to do something in A_detail when user user Save as in Item typa A&amp;#39;s main grid.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What's the event in relationship item type when we user save as function?</title><link>https://www.aras.com/community/thread/3048?ContentTypeID=1</link><pubDate>Fri, 21 Jun 2019 09:12:25 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:05c98b8c-ff9a-4d5b-bfd8-fc92fdc3d566</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Hi tenny,&lt;/p&gt;
&lt;p&gt;in which ItemType do you have definied the onBeforeCopy event? In the Parent ItemType or the ItemType of the Related Item? E.g. you want to react on chances in the Part BOM, use your event in the ItemType &amp;quot;Part_BOM&amp;quot; instead of &amp;quot;Part&amp;quot;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>