<?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>isLocked vs isEditMode</title><link>https://www.aras.com/community/f/development/35774/islocked-vs-iseditmode</link><description>Hi, 
 In my application, by javascript, I need to know if my opened ItemType is in &amp;quot;Edit&amp;quot; mode or not to enable or disable some html widgets. 
 In ARAS 11, I used document.thisItem.isLocked() to know that. 
 In ARAS 12, with the same code, the behavior</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: isLocked vs isEditMode</title><link>https://www.aras.com/community/thread/5430?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 09:20:25 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:e1465eca-f4cf-4547-b968-c6fbca394cb5</guid><dc:creator>miraks</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I found the solution. Instead of using&amp;nbsp;&lt;span&gt;&lt;strong&gt;document.thisItem.isLocked()&lt;/strong&gt;, I use&amp;nbsp;&lt;/span&gt;&lt;strong&gt;document.thisItem.getAttribute(&amp;quot;isEditState&amp;quot;,&amp;nbsp;&amp;quot;0&amp;quot;)&amp;nbsp;===&amp;nbsp;&lt;/strong&gt;&lt;span&gt;&lt;strong&gt;&amp;quot;0&amp;quot;&lt;/strong&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;strong&gt;isLocked&lt;/strong&gt; is interesting just to know if the item is claimed or not and to know if this by you or not.&amp;nbsp;It&amp;#39;s only useful in very rare cases.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;The property&amp;nbsp;isEditState&amp;nbsp;&lt;/strong&gt;is interesting to know if your item is in edit mode or not. It&amp;#39;s useful in much more cases.&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;This is better because now, I don&amp;#39;t have buttons or fields enabled on item just claimed but not in edit mode.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;But I have another issue that I tried to summary in this schema:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/3/pastedimage1595322913447v3.png" alt=" " /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;As you can see, I don&amp;#39;t have the same state if I go through (1) or (2)+(3).&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I didn&amp;#39;t find even triggered when we go from &amp;quot;claimed&amp;quot; to &amp;quot;edit&amp;quot;.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;Do you know a solution on ARAS 12 ?&lt;/strong&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>