<?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>Adam Partlo さんのアクティビティ</title><link>https://www.aras.com/community/members/apdidy</link><description>Adam Partlo さんの最近のアクティビティ</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>Let me Help You</title><link>https://www.aras.com/community/achievements/687f4b6d-e18a-4e55-836c-49926ca2c9d9</link><pubDate>Thu, 11 Apr 2024 18:39:57 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:626e79f0-508e-47a8-aad0-94fd71b65abb</guid><dc:creator /><description>Answer a question that is verified as helpful or correct.</description></item><item><title>How to disable delete relationship button based on parent item state?</title><link>https://www.aras.com/community/f/development/38348/how-to-disable-delete-relationship-button-based-on-parent-item-state</link><pubDate>Wed, 10 Apr 2024 21:07:16 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:40a3eea7-edcb-45a8-9fe8-57b4ff82a470</guid><dc:creator>Adam Partlo</dc:creator><description>&lt;p&gt;I know this question has been asked multiple times and I have reviewed all the ones that had answers. None of them seemed to clearly lead me in the right direction.&lt;/p&gt;
&lt;p&gt;I feel what I&amp;#39;m trying to do is a pretty basic use case. I&amp;#39;m trying to prevent affected items from being deleted or added based on the lifecycle state of the ECN. I feel the following is the most user friendly way to achieve this.&lt;/p&gt;
&lt;p&gt;For the ECN Item, I want to disable the &amp;quot;Delete ECN Affected Item&amp;quot; button when the ECN state is (In Review or Released state).&lt;/p&gt;
&lt;p&gt;Is this recommended? If so, please provide an example.&lt;/p&gt;
&lt;p&gt;If not, what is the preferred method to achieve this with a good user experience?&lt;/p&gt;
&lt;p&gt;&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>Thu, 18 Jan 2024 15:01:55 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:fb8f3c8a-2cb4-4af8-a167-50c9ae01d7c7</guid><dc:creator /><description>Ask a question in a forum.</description></item><item><title>Looking for equivalent of SQL select max(property) in IOM</title><link>https://www.aras.com/community/f/development/38216/looking-for-equivalent-of-sql-select-max-property-in-iom</link><pubDate>Thu, 18 Jan 2024 15:01:54 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:25ef7bc5-f94f-43d2-a101-de5261332ba0</guid><dc:creator>Adam Partlo</dc:creator><description>&lt;p&gt;I am looking for the equivalent to select max(property) in IOM.&lt;/p&gt;
&lt;p&gt;The below SQL query returns exactly what I want, but I understand that this should be used as a last resort and want to make sure I&amp;#39;m not missing something.&lt;br /&gt;select MAX(item_number)&lt;br /&gt; FROM [InnovatorServer27_Dev_HL].[innovator].[PART]&lt;br /&gt; where part.item_number like &amp;#39;1010P%&amp;#39;&lt;br /&gt; &lt;br /&gt;result: 1010P000002&lt;/p&gt;
&lt;p&gt;This is the function within my method that I&amp;#39;m working with.&lt;br /&gt; &lt;br /&gt; string GetNextBaseNumber(Innovator inn, string PartNumberPrefix)&lt;br /&gt;{&lt;br /&gt; int BaseNumber = 1;&lt;br /&gt; &lt;br /&gt; // This query is currently returning a collection when I want it to return the max value&lt;br /&gt; Item Part = inn.newItem(&amp;quot;Part&amp;quot;, &amp;quot;get&amp;quot;);&lt;br /&gt; Part.setProperty(&amp;quot;item_number&amp;quot;, PartNumberPrefix + &amp;quot;%&amp;quot;);&lt;br /&gt; Part.setPropertyAttribute(&amp;quot;item_number&amp;quot;, &amp;quot;condition&amp;quot;, &amp;quot;like&amp;quot;);&lt;br /&gt; Part = Part.apply();&lt;br /&gt; &lt;br /&gt; if (!Part.isEmpty())&lt;br /&gt; {&lt;br /&gt; BaseNumber = Int32.Parse(Part.getProperty(&amp;quot;item_number&amp;quot;).Substring(5,6))+1;&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; return PartNumberPrefix + BaseNumber.ToString().PadLeft(6, &amp;#39;0&amp;#39;);&lt;br /&gt; &lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>