<?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>Trigger Client Method on Relationship Replace</title><link>https://www.aras.com/community/f/development/37251/trigger-client-method-on-relationship-replace</link><description>I have a client method defined to be triggered on an OnInsertRow event for the Part BOM relationship type. This method is not triggered when the user performs a Part BOM replace. The most likely reason for this is, when handling the replace Innovator</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Trigger Client Method on Relationship Replace</title><link>https://www.aras.com/community/thread/8172?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2022 14:50:19 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:31b3684f-854e-4867-8e47-8e9330466e97</guid><dc:creator>Gary Klosak</dc:creator><description>&lt;p&gt;Angelaip&lt;/p&gt;
&lt;p&gt;Thanks for your suggestions. The primary function of the existing OnInsertRow client method is to prohibit adding certain Parts to certain BOMs. Two simple prohibitions are: to not allow any Part to appear twice on any BOM; and not allow any Part to be added to the BOM of a Part with classification = &amp;#39;Component&amp;#39;. There are many other, more complex, prohibitions.&lt;/p&gt;
&lt;p&gt;As you mentioned there are several possible approaches using Server methods, but they would require the user to do a Save before Innovator would trigger the method. It is more user friendly to notify the user of any problems as they are entered.&lt;/p&gt;
&lt;p&gt;Utilizing a Property event (such as OnEditStart) for the Part BOM itemtype related_id property may possibly be of use.&lt;/p&gt;
&lt;p&gt;For now we have just disabled the Part BOM Replace button.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trigger Client Method on Relationship Replace</title><link>https://www.aras.com/community/thread/8170?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 15:33:30 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:66a8b5a8-15d9-42eb-8b91-da66b496cf56</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;HI Gary,&lt;/p&gt;
&lt;p&gt;interesting discovery! I wasn&amp;acute;t aware of this behavior of &amp;#39;replace&amp;#39;.&lt;/p&gt;
&lt;p&gt;The answer depends of what you want to&amp;nbsp;achieve with your Method. Is&amp;nbsp;an onAfterUpdate server event not an option? It&amp;nbsp;at least can update something in your relationships when user click save. Or maybe use Properties events?&lt;/p&gt;
&lt;p&gt;There is the alternative client options with onFormPopular Form events to evaluate changes inside relationships,&amp;nbsp;but this option also requires the &amp;quot;Save&amp;quot; by the user.&lt;/p&gt;
&lt;p&gt;If nothing works, even a custom &amp;quot;Replace&amp;quot; button is an option. But this is just a loose collection. It depends on your use case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>