<?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>Event Handler Failed OnInsertRow</title><link>https://www.aras.com/community/f/getting-started/6390/event-handler-failed-oninsertrow</link><description>Hi 
 I am new to Aras so i dont really know what am doing. However i have been working on a small project where i require a row event. when i add the below code to the Relationship type with the event handler OnInsertRow i keep getting an error. can someone</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Event Handler Failed OnInsertRow</title><link>https://www.aras.com/community/thread/3639?ContentTypeID=1</link><pubDate>Wed, 02 Oct 2019 07:45:00 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:7fbf2229-b2b8-4369-a172-87c85f1fb1ba</guid><dc:creator>user123</dc:creator><description>&lt;p&gt;&amp;nbsp;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have done exactly what you said and i still get a internal error:event handler failed. I really dont know what i am doing wrong.&amp;nbsp; &amp;nbsp;Also the field label is called sort_order.&amp;nbsp; Just to confirm that this event handler is meant to go into the relationshipItemType right&amp;nbsp; &amp;nbsp; i have been working on this for the past few days and i cant seem to get it&amp;nbsp; right.&amp;nbsp; Please help me. Is there&amp;nbsp; a another way i can do this and still get the same output&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Event Handler Failed OnInsertRow</title><link>https://www.aras.com/community/thread/3638?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2019 21:33:37 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:9fc7deb2-7721-49e3-8610-2569aa41474d</guid><dc:creator>Gopikrishnan</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;In this case, the relationship should be &amp;#39;part_List&amp;#39;. Also ensure that you want to update the sort_order column or item number column.&lt;/p&gt;
&lt;div&gt;&lt;span&gt;var&lt;/span&gt;&lt;span&gt;&amp;nbsp;parent_item = parent.thisItem;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;var&lt;/span&gt;&lt;span&gt;&amp;nbsp;parts = parent_item.getRelationships(&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;strong&gt;part_List&lt;/strong&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;var&lt;/span&gt;&lt;span&gt;&amp;nbsp;newItemNum = parts.getItemCount();&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;setRelationshipProperty(relationshipID,&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;quot;sort_order&amp;quot;&lt;/span&gt;&lt;span&gt;, newItemNum);&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;Thank You&lt;/p&gt;
&lt;p&gt;Gopikrishnan R&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Event Handler Failed OnInsertRow</title><link>https://www.aras.com/community/thread/3633?ContentTypeID=1</link><pubDate>Tue, 01 Oct 2019 07:59:02 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:6bcb9927-5f9b-419b-a7ee-48723d296ac5</guid><dc:creator>user123</dc:creator><description>&lt;p&gt;&amp;nbsp;Hi&lt;/p&gt;
&lt;p&gt;Thank youy so much for replying,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;So i have main item type called Design_Parts&amp;nbsp; with has a relationship with part_List and that has a&amp;nbsp; relationship item which is called Design_Part _list . so as far as my understanding goes i have&amp;nbsp; gone to my DesignPart itemType clicked on Relationship and&amp;nbsp; clicked on&amp;nbsp; view relationshipType. In there it has a tab called Grid event and thats where i have maneged to&amp;nbsp;&amp;nbsp;put this.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/6/pastedimage1569916327613v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;so my code goes something like this but currently it doesnt do anything apart form give me a eror.&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;var&lt;/span&gt;&lt;span&gt;&amp;nbsp;parent_item = parent.thisItem;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;var&lt;/span&gt;&lt;span&gt;&amp;nbsp;parts = parent_item.getRelationships(&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;strong&gt;Design_Parts&lt;/strong&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;var&lt;/span&gt;&lt;span&gt;&amp;nbsp;newItemNum = parts.getItemCount();&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;setRelationshipProperty(relationshipID,&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;quot;sort_order&amp;quot;&lt;/span&gt;&lt;span&gt;, newItemNum);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;I want something like the screenshot below . so when the end users add partsit will automatically be like&amp;nbsp;part 1 part 2 so on. and currrently its not doing that and i dont understand where am going wrong.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/6/pastedimage1569916301720v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Again thank you soo much for your help.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;USER123&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Event Handler Failed OnInsertRow</title><link>https://www.aras.com/community/thread/3631?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2019 17:20:24 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:fb106b6d-7bb9-451d-9e5f-a32902f460bf</guid><dc:creator>Gopikrishnan</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I assume you are trying to update sort order of a relationship. Can you confirm the relationship name is correct. You can go to Administrators --&amp;gt; Item Type --&amp;gt; Search Part and see what is the exact relationship name under relationship tab.&lt;/p&gt;
&lt;p&gt;Lets assume you are updating the Part BOM, then your code should be:&lt;/p&gt;
&lt;div&gt;&lt;span&gt;var&lt;/span&gt;&lt;span&gt;&amp;nbsp;parent_item = parent.thisItem;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;var&lt;/span&gt;&lt;span&gt;&amp;nbsp;parts = parent_item.getRelationships(&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;strong&gt;Part BOM&lt;/strong&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;var&lt;/span&gt;&lt;span&gt;&amp;nbsp;newItemNum = parts.getItemCount();&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;setRelationshipProperty(relationshipID,&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;quot;sort_order&amp;quot;&lt;/span&gt;&lt;span&gt;, newItemNum);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Gopikrishnan R&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>