<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Test if data table is locked in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Test-if-data-table-is-locked/m-p/71774#M35492</link>
    <description>&lt;P&gt;From the Scripting Index Example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; Set Edit Lock( "Add Rows", "Delete Columns" );
Wait( 2 );
dt &amp;lt;&amp;lt; Get Edit Lock();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Help==&amp;gt;Scripting Index&lt;/P&gt;
&lt;P&gt;search on "Lock"&lt;/P&gt;</description>
    <pubDate>Fri, 07 Sep 2018 19:25:14 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-09-07T19:25:14Z</dc:date>
    <item>
      <title>Test if data table is locked</title>
      <link>https://community.jmp.com/t5/Discussions/Test-if-data-table-is-locked/m-p/71769#M35489</link>
      <description>&lt;P&gt;I know that I can lock and unlock a data table through the Lock Data Table() command, but how do I test if a data table is locked? A table locked through Lock Data Table() returns Empty() when using the Get Edit Lock() function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;//:*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;dt&amp;lt;&amp;lt;Lock Data Table(1);&lt;BR /&gt;/*:&lt;/P&gt;&lt;P&gt;Scriptable[]&lt;BR /&gt;//:*/&lt;BR /&gt;dt &amp;lt;&amp;lt; Get Edit Lock();&lt;BR /&gt;/*:&lt;/P&gt;&lt;P&gt;Empty()&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 19:09:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Test-if-data-table-is-locked/m-p/71769#M35489</guid>
      <dc:creator>MarkDayton</dc:creator>
      <dc:date>2018-09-07T19:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Test if data table is locked</title>
      <link>https://community.jmp.com/t5/Discussions/Test-if-data-table-is-locked/m-p/71774#M35492</link>
      <description>&lt;P&gt;From the Scripting Index Example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; Set Edit Lock( "Add Rows", "Delete Columns" );
Wait( 2 );
dt &amp;lt;&amp;lt; Get Edit Lock();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Help==&amp;gt;Scripting Index&lt;/P&gt;
&lt;P&gt;search on "Lock"&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 19:25:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Test-if-data-table-is-locked/m-p/71774#M35492</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-09-07T19:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Test if data table is locked</title>
      <link>https://community.jmp.com/t5/Discussions/Test-if-data-table-is-locked/m-p/71775#M35493</link>
      <description>&lt;P&gt;Thanks, but I've gotten into the habit of using the red triangle drop down to lock the data table, and Get Edit Lock() returns empty, which doesn't make sense. My expectation is that it should return a list:&amp;nbsp;{"Modify Cells", "Add Rows", "Delete Rows", "Add Columns", "Delete Columns"}, when the table is locked either through the drop down or Lock Data Table(1).&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 19:30:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Test-if-data-table-is-locked/m-p/71775#M35493</guid>
      <dc:creator>MarkDayton</dc:creator>
      <dc:date>2018-09-07T19:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Test if data table is locked</title>
      <link>https://community.jmp.com/t5/Discussions/Test-if-data-table-is-locked/m-p/71777#M35495</link>
      <description>&lt;P&gt;I would add that request to the JMP Wish List&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 19:38:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Test-if-data-table-is-locked/m-p/71777#M35495</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-09-07T19:38:38Z</dc:date>
    </item>
  </channel>
</rss>

