<?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>Change &amp;#39;Save As&amp;#39; to use part number sequence instead of adding Copy Of in the part number field?</title><link>https://www.aras.com/community/f/development/20614/change-save-as-to-use-part-number-sequence-instead-of-adding-copy-of-in-the-part-number-field</link><description>With Aras V11, SP15: 
 For the Part Item type, we have a pattern setup that we want all parts to follow this pattern: PRT-##### and we want it restricted to this length (9). This works. 
 However, when someone does a &amp;#39;Save AS&amp;#39; or in an Express ECO chooses</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Change 'Save As' to use part number sequence instead of adding Copy Of in the part number field?</title><link>https://www.aras.com/community/thread/5101?ContentTypeID=1</link><pubDate>Thu, 21 May 2020 20:08:52 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:15b91864-b483-4972-bf7c-0cd031693b25</guid><dc:creator>m2sawyer</dc:creator><description>&lt;p&gt;Thanks.&amp;nbsp; Working now&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change 'Save As' to use part number sequence instead of adding Copy Of in the part number field?</title><link>https://www.aras.com/community/thread/5094?ContentTypeID=1</link><pubDate>Wed, 20 May 2020 16:07:32 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:03b3a1d0-3e2a-4b00-adf9-a8a264d389c1</guid><dc:creator>Gopikrishnan</dc:creator><description>&lt;p&gt;Method type should be C# method&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/3/pastedimage1589991161271v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change 'Save As' to use part number sequence instead of adding Copy Of in the part number field?</title><link>https://www.aras.com/community/thread/5090?ContentTypeID=1</link><pubDate>Wed, 20 May 2020 12:15:12 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:c0f5b736-3da7-43be-b689-de5886bef34f</guid><dc:creator>m2sawyer</dc:creator><description>&lt;p&gt;Ok, I tried adding this method (cavi_part_SaveAs).&amp;nbsp; When I did a check syntax, it complained about&amp;nbsp;&amp;quot;Missing &amp;quot;;&amp;quot; before statementon line&amp;nbsp; 1&amp;quot; and on lines 2,3,6,7 and 11.&lt;/p&gt;
&lt;p&gt;Is there a formatting issue or something I need to add first?&amp;nbsp; Note, I&amp;#39;m using Aras V11 SP15.&lt;/p&gt;
&lt;p&gt;When I try to use the method as is I get the error:&lt;/p&gt;
&lt;div class="aml-description__clicable-row"&gt;-&lt;span class="aml-description__special-character"&gt;&amp;lt;&lt;/span&gt;&lt;span class="aml-description__tag-name"&gt;SOAP-ENV:Envelope&lt;/span&gt;&lt;span class="aml-description__special-character"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class="aml-description__tag-block"&gt;
&lt;div class="aml-description__clicable-row"&gt;-&lt;span class="aml-description__special-character"&gt;&amp;lt;&lt;/span&gt;&lt;span class="aml-description__tag-name"&gt;SOAP-ENV:Body&lt;/span&gt;&lt;span class="aml-description__special-character"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class="aml-description__tag-block"&gt;
&lt;div class="aml-description__clicable-row"&gt;-&lt;span class="aml-description__special-character"&gt;&amp;lt;&lt;/span&gt;&lt;span class="aml-description__tag-name"&gt;SOAP-ENV:Fault&lt;/span&gt;&lt;span class="aml-description__special-character"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class="aml-description__tag-block"&gt;&lt;span class="aml-description__plus-or-minus"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="aml-description__special-character"&gt;&amp;lt;&lt;/span&gt;&lt;span class="aml-description__tag-name"&gt;faultcode&lt;/span&gt;&lt;span class="aml-description__special-character"&gt;&amp;gt;&lt;/span&gt;&lt;b&gt;SOAP-ENV:Server&lt;/b&gt;&lt;span class="aml-description__special-character"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="aml-description__tag-name"&gt;faultcode&lt;/span&gt;&lt;span class="aml-description__special-character"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="aml-description__tag-block"&gt;&lt;span class="aml-description__plus-or-minus"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="aml-description__special-character"&gt;&amp;lt;&lt;/span&gt;&lt;span class="aml-description__tag-name"&gt;faultstring&lt;/span&gt;&lt;span class="aml-description__special-character"&gt;&amp;gt;&lt;/span&gt;&lt;b&gt;The method type (JavaScript) specified for cavi_part_SaveAs is not currently supported.&lt;/b&gt;&lt;span class="aml-description__special-character"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="aml-description__tag-name"&gt;faultstring&lt;/span&gt;&lt;span class="aml-description__special-character"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="aml-description__tag-block"&gt;
&lt;div class="aml-description__clicable-row"&gt;-&lt;span class="aml-description__special-character"&gt;&amp;lt;&lt;/span&gt;&lt;span class="aml-description__tag-name"&gt;detail&lt;/span&gt;&lt;span class="aml-description__special-character"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class="aml-description__tag-block"&gt;&lt;span class="aml-description__plus-or-minus"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="aml-description__special-character"&gt;&amp;lt;&lt;/span&gt;&lt;span class="aml-description__tag-name"&gt;af:legacy_detail&lt;/span&gt;&lt;span class="aml-description__special-character"&gt;&amp;gt;&lt;/span&gt;&lt;b&gt;The method type (JavaScript) specified for cavi_part_SaveAs is not currently supported.&lt;/b&gt;&lt;span class="aml-description__special-character"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="aml-description__tag-name"&gt;af:legacy_detail&lt;/span&gt;&lt;span class="aml-description__special-character"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span class="aml-description__plus-or-minus"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="aml-description__special-character"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="aml-description__tag-name"&gt;detail&lt;/span&gt;&lt;span class="aml-description__special-character"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span class="aml-description__plus-or-minus"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="aml-description__special-character"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="aml-description__tag-name"&gt;SOAP-ENV:Fault&lt;/span&gt;&lt;span class="aml-description__special-character"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span class="aml-description__plus-or-minus"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="aml-description__special-character"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="aml-description__tag-name"&gt;SOAP-ENV:Body&lt;/span&gt;&lt;span class="aml-description__special-character"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span class="aml-description__plus-or-minus"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="aml-description__special-character"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="aml-description__tag-name"&gt;SOAP-ENV:Envelope&lt;/span&gt;&lt;span class="aml-description__special-character"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span class="aml-description__special-character"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span class="aml-description__special-character"&gt;Thanks for the help.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change 'Save As' to use part number sequence instead of adding Copy Of in the part number field?</title><link>https://www.aras.com/community/thread/5086?ContentTypeID=1</link><pubDate>Wed, 20 May 2020 06:02:35 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:8684bec2-16ca-4da0-8ec6-3cd7b654c2dd</guid><dc:creator>Gopikrishnan</dc:creator><description>&lt;p&gt;&lt;strong&gt;Hi&amp;nbsp;m2sawyer&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Use below steps to update part number. (Input is Sequence Name used to generate part part number. I used Simple ECO sequence number for reference. Update and verify)&lt;/p&gt;
&lt;p&gt;Step 1: Create new server method and copy below code&lt;/p&gt;
&lt;p&gt;Step 2: Open Part Item type and add this method under server events&lt;strong&gt; (Event : On After Copy)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Step 3: Save and Unlock the Item type&lt;/p&gt;
&lt;p&gt;Innovator inn = this.getInnovator();&lt;br /&gt;Aras.Server.Security.Identity plmIdentity = Aras.Server.Security.Identity.GetByName(&amp;quot;Aras PLM&amp;quot;);&lt;br /&gt;bool PermissionWasSet = Aras.Server.Security.Permissions.GrantIdentity(plmIdentity);&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt; string sequence =&lt;strong&gt; &amp;quot;Simple ECO&amp;quot;;&amp;nbsp;&lt;/strong&gt;&amp;nbsp;&lt;br /&gt; Item newPartItem = inn.newItem(this.getType(), &amp;quot;edit&amp;quot;);&lt;br /&gt; newPartItem.setID(this.getID());&lt;br /&gt; if (!string.IsNullOrEmpty(sequence)) &lt;br /&gt; {&lt;br /&gt; string newNumber = inn.getNextSequence(sequence);&lt;br /&gt; newPartItem.setProperty(&amp;quot;item_number&amp;quot;, newNumber);&lt;br /&gt; newPartItem = newPartItem.apply();&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;finally&lt;br /&gt;{&lt;br /&gt; if (PermissionWasSet) Aras.Server.Security.Permissions.RevokeIdentity(plmIdentity);&lt;br /&gt;}&lt;br /&gt;return this;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&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></channel></rss>