<?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: Can I pause a script to allow a user to edit a data table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Can-I-pause-a-script-to-allow-a-user-to-edit-a-data-table/m-p/586368#M79197</link>
    <description>&lt;P&gt;You are correct about using Modal, you will not be able to manipulate the data table with it open.&amp;nbsp; However, you can simply use a standard window, and embed the code you want to process once the table is edited, and then submit that code when the "Continue" button is pressed.&amp;nbsp; Here is a simple 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" );

Nw = New Window( "Make Edits",
	Text Box( "Please make any edits to the data table" ),
	Text Box( "that need to be made, and then press the \!"Continue\!" button" ),
	Spacer Box( size( 1, 15 ) ),
	Button Box( "Continue",
		nw &amp;lt;&amp;lt; close window;
		Oneway( Y( :height ), X( :sex ) );
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 04 Jan 2023 03:56:43 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2023-01-04T03:56:43Z</dc:date>
    <item>
      <title>Can I pause a script to allow a user to edit a data table</title>
      <link>https://community.jmp.com/t5/Discussions/Can-I-pause-a-script-to-allow-a-user-to-edit-a-data-table/m-p/586307#M79193</link>
      <description>&lt;P&gt;I currently have a script which if run as highlighted lines works perfectly.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Highlighting the first lines, a data table is created (from an SQL Query) and the script stops.&lt;/P&gt;&lt;P&gt;That table can then be edited (some rows are highlighted or deleted) and then the 2nd half of the script can be run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like for a user to run this without having to highlight script lines, so I need a way to pause the script until the user indicates the table is edited.&lt;/P&gt;&lt;P&gt;I tried New Window &amp;lt;&amp;lt; Modal, but that does not allow any activity outside the GUI.&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp;New Window without Modal but the script keeps running without the edit.&lt;/P&gt;&lt;P&gt;How do I script in the pause as is done by running the script as two separate parts?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:44:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-I-pause-a-script-to-allow-a-user-to-edit-a-data-table/m-p/586307#M79193</guid>
      <dc:creator>pcarroll1</dc:creator>
      <dc:date>2023-06-08T16:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can I pause a script to allow a user to edit a data table</title>
      <link>https://community.jmp.com/t5/Discussions/Can-I-pause-a-script-to-allow-a-user-to-edit-a-data-table/m-p/586368#M79197</link>
      <description>&lt;P&gt;You are correct about using Modal, you will not be able to manipulate the data table with it open.&amp;nbsp; However, you can simply use a standard window, and embed the code you want to process once the table is edited, and then submit that code when the "Continue" button is pressed.&amp;nbsp; Here is a simple 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" );

Nw = New Window( "Make Edits",
	Text Box( "Please make any edits to the data table" ),
	Text Box( "that need to be made, and then press the \!"Continue\!" button" ),
	Spacer Box( size( 1, 15 ) ),
	Button Box( "Continue",
		nw &amp;lt;&amp;lt; close window;
		Oneway( Y( :height ), X( :sex ) );
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Jan 2023 03:56:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-I-pause-a-script-to-allow-a-user-to-edit-a-data-table/m-p/586368#M79197</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-01-04T03:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can I pause a script to allow a user to edit a data table</title>
      <link>https://community.jmp.com/t5/Discussions/Can-I-pause-a-script-to-allow-a-user-to-edit-a-data-table/m-p/586550#M79209</link>
      <description>&lt;P&gt;txnelson,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Thank You!&amp;nbsp; I saw a similar response to this question in a post from a few years ago, but I didn't understand (my fault) that the secret is to put the second part of the code in the Button Box.&amp;nbsp; I understand your explanation clearly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW: Do you know if there is any reason why JMP just can't add a Pause Script Box?&amp;nbsp; It seems it would be much simpler.&amp;nbsp; I could add it to the Wishlist.&lt;/P&gt;&lt;P&gt;pcarroll1&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 14:43:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-I-pause-a-script-to-allow-a-user-to-edit-a-data-table/m-p/586550#M79209</guid>
      <dc:creator>pcarroll1</dc:creator>
      <dc:date>2023-01-04T14:43:59Z</dc:date>
    </item>
  </channel>
</rss>

