<?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/"><channel><title>David James さんのアクティビティ</title><link>https://www.aras.com/community/members/david.james_4000_oxinst.com</link><description>David James さんの最近のアクティビティ</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>Code works in one environment and not another</title><link>https://www.aras.com/community/f/development/55453/code-works-in-one-environment-and-not-another</link><pubDate>Tue, 11 Mar 2025 14:41:09 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:9e02d745-2eb5-45bc-940d-10a2c8e4dd3d</guid><dc:creator>David James</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I hope someone can help. I have a locally installed instance of Aras, (v12 sp16) and a development instance, same version and service pack.&amp;nbsp; They connect to the same database.&lt;/p&gt;
&lt;p&gt;I have created a button on the manufacturer part from to remove the link to a part and delete a link on the form.&lt;/p&gt;
&lt;p&gt;The button code is client side script which initially gets the Manufacturer Part id and passes it to a server side method that does the job of removing the relationship with the Part item.&lt;/p&gt;
&lt;p&gt;The client side script then removes a link on the form to the Part.&lt;/p&gt;
&lt;p&gt;This all works well in my local installation but when I run it in the development environment the Manufacturer Part id isn&amp;#39;t retrieved and passed to the server side method so results in an error.&lt;/p&gt;
&lt;p&gt;The button code is:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;var inn = aras.IomInnovator;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;var mfpID = document.thisItem.getId();&lt;/em&gt;&lt;br /&gt;&lt;em&gt;var itemNum = document.thisItem.getProperty(&amp;quot;item_number&amp;quot;);&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;var result = aras.applyMethod(&amp;quot;oipt_break_OEM_OI_link&amp;quot;, &amp;quot;&amp;lt;mfPtID&amp;gt;&amp;quot; + mfpID + &amp;quot;&amp;lt;/mfPtID&amp;gt;&amp;lt;item_number&amp;gt;&amp;quot; + itemNum + &amp;quot;&amp;lt;/item_number&amp;gt;&amp;quot; );&lt;/em&gt;&lt;br /&gt;&lt;em&gt;if(!result)&lt;/em&gt;&lt;br /&gt;&lt;em&gt;{&lt;/em&gt;&lt;br /&gt;&lt;em&gt; return; //no alert necessary, error message thrown by server method&lt;/em&gt;&lt;br /&gt;&lt;em&gt;}&lt;/em&gt;&lt;br /&gt;&lt;em&gt;else&lt;/em&gt;&lt;br /&gt;&lt;em&gt;{&lt;/em&gt;&lt;br /&gt;&lt;em&gt; var parentItm = document.thisItem;&lt;/em&gt;&lt;br /&gt;&lt;em&gt; var parentID = document.itemID;&lt;/em&gt;&lt;br /&gt;&lt;em&gt; var parentAction = &amp;#39;view&amp;#39;;&lt;/em&gt;&lt;br /&gt;&lt;em&gt; document.getElementById(&amp;quot;part&amp;quot;).innerText = &amp;quot;&amp;quot;;&lt;/em&gt;&lt;br /&gt;&lt;em&gt; document.getElementById(&amp;quot;partid&amp;quot;).value = &amp;quot;&amp;quot;;&lt;/em&gt;&lt;br /&gt;&lt;em&gt; // show new item in frame of previous item&lt;/em&gt;&lt;br /&gt;&lt;em&gt; top.aras.uiReShowItem(parentID,parentID, parentAction, &amp;#39;tab view&amp;#39;);&lt;/em&gt;&lt;br /&gt;&lt;em&gt; alert(&amp;quot;Link to component removed.&amp;quot;);&lt;/em&gt;&lt;br /&gt;&lt;em&gt;}&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Can anyone tell me why the same code works in one environment and not in the other please?&lt;/p&gt;
&lt;p&gt;Many thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Ask A Question I</title><link>https://www.aras.com/community/achievements/460ac7df-7ccc-4c42-a204-9e05eef3be09</link><pubDate>Tue, 11 Mar 2025 14:41:10 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:36aea5f1-2228-4607-baec-b80703d74543</guid><dc:creator /><description>Ask a question in a forum.</description></item></channel></rss>