<?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: How to display &amp;quot;Script is running, please wait!&amp;quot; for user while JSL script is running in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-display-quot-Script-is-running-please-wait-quot-for-user/m-p/747241#M92721</link>
    <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/15063"&gt;@matth1&lt;/a&gt;&amp;nbsp; does the job for me. Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Apr 2024 10:56:32 GMT</pubDate>
    <dc:creator>Neo</dc:creator>
    <dc:date>2024-04-16T10:56:32Z</dc:date>
    <item>
      <title>How to display "Script is running, please wait!" for user while JSL script is running</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-display-quot-Script-is-running-please-wait-quot-for-user/m-p/747231#M92715</link>
      <description>&lt;P&gt;I have a bunch of JMP add-in's which when fired displays a UI window with options for user selection. Pressing the final OK, associated scripts fetch data from data base, does calculation on the data and finally displays the final data table(s) and associated charts. While all this is happening, JMP only shows the hourglass if the mouse cursor is placed on any existing JMP window, otherwise not. Depending on the amount of data, the data fetching and calculation can sometimes take a long time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to display&amp;nbsp; (via JSL) to the user a dialog like "Script is running, Please wait!" until the final data tables and charts appear after which the dialog disappears?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 09:05:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-display-quot-Script-is-running-please-wait-quot-for-user/m-p/747231#M92715</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2024-04-16T09:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to display "Script is running, please wait!" for user while JSL script is running</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-display-quot-Script-is-running-please-wait-quot-for-user/m-p/747240#M92720</link>
      <description>&lt;P&gt;I'm not sure if there is a "proper" way to do it, but I create a simple non-modal window with a "please wait" message which I close after the action has completed.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;win_pls_wait = New Window( "Please wait",
	&amp;lt;&amp;lt;Show Menu( 0 ),
	&amp;lt;&amp;lt;Show Toolbars( 0 ),
	Panel Box( "Working...", Lineup Box( N Col( 2 ), Busy Light( &amp;lt;&amp;lt;automatic, size( 40, 40 ) ), Text Box( "Running action..." ) ) )
);
// Open Database( ... )
// or other long action
Try( win_pls_wait &amp;lt;&amp;lt; close window );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I guess there's always a risk of the "please wait" window getting left open if the long action causes an error, but for well tested processes it seems to work OK for me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 10:43:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-display-quot-Script-is-running-please-wait-quot-for-user/m-p/747240#M92720</guid>
      <dc:creator>matth1</dc:creator>
      <dc:date>2024-04-16T10:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to display "Script is running, please wait!" for user while JSL script is running</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-display-quot-Script-is-running-please-wait-quot-for-user/m-p/747241#M92721</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/15063"&gt;@matth1&lt;/a&gt;&amp;nbsp; does the job for me. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 10:56:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-display-quot-Script-is-running-please-wait-quot-for-user/m-p/747241#M92721</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2024-04-16T10:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to display "Script is running, please wait!" for user while JSL script is running</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-display-quot-Script-is-running-please-wait-quot-for-user/m-p/747272#M92732</link>
      <description>&lt;P&gt;There's also the caption function.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;caption("Processing data ");
j = 0;
for (i = 1, i &amp;lt;= 10000000, i++,
	if (mod(i, 100000) == 0,
		j++;
		caption("Processing data " || repeat(".", j));
		wait(0);
	);
);

caption("Done");
wait(3);
caption(remove);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Apr 2024 14:04:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-display-quot-Script-is-running-please-wait-quot-for-user/m-p/747272#M92732</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2024-04-16T14:04:13Z</dc:date>
    </item>
  </channel>
</rss>

