<?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: JSL Scripts not running in JMP 15 in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-Scripts-not-running-in-JMP-15/m-p/234089#M46420</link>
    <description>&lt;P&gt;Hi, Both options work. Although I don't seem to need to set "&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: black; direction: ltr; font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace; font-size: inherit; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 1.5; -ms-hyphens: none; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px white; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-break: normal; word-spacing: normal;"&gt;dbSelected &lt;/SPAN&gt;&lt;SPAN class="token operator" style="box-sizing: border-box; color: #000000; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token string" style="box-sizing: border-box; color: #800080; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;"Proda"&lt;/SPAN&gt;&lt;SPAN class="token punctuation" style="box-sizing: border-box; color: #000000; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;;" before the modal window.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="token punctuation" style="box-sizing: border-box; color: #000000; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;Thank you very much. Rewriting scripts now...&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Nov 2019 07:45:57 GMT</pubDate>
    <dc:creator>Ole</dc:creator>
    <dc:date>2019-11-18T07:45:57Z</dc:date>
    <item>
      <title>JSL Scripts not running in JMP 15</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Scripts-not-running-in-JMP-15/m-p/233583#M46306</link>
      <description>&lt;P&gt;My scripts do not run when I try them in JMP 15. They work fine in JMP14 (and have in JMP13 too).&lt;/P&gt;&lt;P&gt;The error message I get in the log (see example below) is familiar to me. I know it since JMP12 and it only happend before when I ran a script and had the log open. The solution was to just close the log.&lt;/P&gt;&lt;P&gt;In JMP 15 the log is open by default and I can't close it. The preference "&lt;FONT&gt;Log Open Strategy( "Explicit" ),&lt;/FONT&gt;" doesn't exist in JMP15.&lt;/P&gt;&lt;P&gt;Is there a way to close the log and/or get around the 'Glue' error message otherwise?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example (XXX = replacement for actual name of data tables's):&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;deleted object reference: cbf &amp;lt;&amp;lt; Get Selected in access or evaluation of 'Glue' , Try(TQC_daily &amp;lt;&amp;lt; close window); &amp;nbsp; /*###*/Try(Close(dt_xxx, no save));&amp;nbsp; /*###*/Try(Close(dt_xxx, no save));&amp;nbsp; /*###*/Try(Close(dt_xxx, no save));&amp;nbsp; /*###*/Try(Close(dt_xxx, no save));&amp;nbsp; /*###*/Try(Close(dt_xxx, no save));&amp;nbsp; /*###*/Try(Close(dt_xxx, no save));&amp;nbsp; /*###*/Try(Close(dt_xxx, no save));&amp;nbsp; /*###*/Try(Close(dt_xxx, no save));&amp;nbsp; /*###*/Try(Close(dt_xxx, no save));&amp;nbsp; /*###*/Try(Close(dt_xxx, no save));&amp;nbsp; /*###*/Names Default To Here(1);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 15:01:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Scripts-not-running-in-JMP-15/m-p/233583#M46306</guid>
      <dc:creator>Ole</dc:creator>
      <dc:date>2019-11-13T15:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: JSL Scripts not running in JMP 15</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Scripts-not-running-in-JMP-15/m-p/233593#M46307</link>
      <description>&lt;P&gt;For the deleted object reference on &amp;lt;&amp;lt;Get Selected(), I assume that cbf is some kind of display box.&amp;nbsp; In versions of JMP prior to JMP 15, it was possible in some cases to access display boxes for some time after a window had closed.&amp;nbsp; How long they were available was difficult to say - if you called Wait() from JSL the boxes would finally be deleted, and many other calls could have deleted the box.&amp;nbsp; Furthermore, the behavior was different between Mac and Windows - typically the boxes would be deleted sooner on Mac than on Windows.&amp;nbsp; The recommendation is to complete all use of display boxes prior to closing the window.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know how this is related to your calls to close data tables.&amp;nbsp; Do you have OnClose scripts that run when a data table or report are deleted?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 15:20:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Scripts-not-running-in-JMP-15/m-p/233593#M46307</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2019-11-13T15:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: JSL Scripts not running in JMP 15</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Scripts-not-running-in-JMP-15/m-p/233607#M46309</link>
      <description>&lt;P&gt;Hi and thanks for getting in touch with me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have OnClose scripts running. What I do have though are selection windows where the user can (or has to) select e.g. to only look at a specific product.&lt;/P&gt;
&lt;P&gt;I just tried it and scripts that don't have the selection window seem to run fine. The selection box looks for example like below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "OCS Scripts",
	&amp;lt;&amp;lt;Modal,
	H List Box(
		V List Box(
			Text Box(
				"Select product you want to create trend data",
				&amp;lt;&amp;lt;Set Wrap( 300 ),
				&amp;lt;&amp;lt;Set font size( 12 ),
				&amp;lt;&amp;lt;font color( "dark green" ),

			),
			Text Box( "", &amp;lt;&amp;lt;Set Wrap( 300 ), &amp;lt;&amp;lt;Set font size( 10 ), &amp;lt;&amp;lt;font color( "dark red" ), ),

		),

	),
	hb = H List Box(
		pbFab = Panel Box( "Select your decision:",
			cbf = Radio Box( {"Proda", "Prodb", "Prodc", "Product_Stats"} ),

		),

	), //end Hlist
               
	Text Box( "", &amp;lt;&amp;lt;Set Wrap( 800 ), &amp;lt;&amp;lt;Set font size( 10 ), &amp;lt;&amp;lt;font color( "dark green" ) ),
	Text Box( "", &amp;lt;&amp;lt;Set Wrap( 800 ), &amp;lt;&amp;lt;Set font size( 12 ), &amp;lt;&amp;lt;font color( "dark green" ) ), 
      
	V List Box( H List Box( Button Box( "OK", proceed = 1 ), Button Box( "Cancel", proceed = 0 ) ), ),

);
If( proceed == 0,
	Caption( {300, 300}, "Script aborted", spoken( 0 ), Delayed( 0 ) );
	Wait( 2 );
	Caption( remove );
	Throw();
);
dbSelected = cbf &amp;lt;&amp;lt; Get Selected;
Show( dbSelected );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Nov 2019 18:47:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Scripts-not-running-in-JMP-15/m-p/233607#M46309</guid>
      <dc:creator>Ole</dc:creator>
      <dc:date>2019-11-13T18:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: JSL Scripts not running in JMP 15</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Scripts-not-running-in-JMP-15/m-p/233619#M46312</link>
      <description>&lt;P&gt;Modal windows, which pause the execution of the script until the dialog is dismissed, are one example where it is common to try to use a box after it has been deleted.&amp;nbsp; In this example, it would be preferred to initialize a variable prior to the prompt dialog:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dbSelected = "Proda";
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And then save the results of the radio box during the execution of the dialog:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;			cbf = Radio Box( {"Proda", "Prodb", "Prodc", "Product_Stats"},
				dbSelected = cbf &amp;lt;&amp;lt; Get Selected;
			)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you have multiple inputs and prefer to group the input processing together, you can use the &amp;lt;&amp;lt;On Validate() or &amp;lt;&amp;lt;On Close() scripts as part of the New Window() call:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "OCS Scripts",
	&amp;lt;&amp;lt;Modal,
	&amp;lt;&amp;lt;On Validate(dbSelected = cbf &amp;lt;&amp;lt; Get Selected; 1),
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I hope one of these approaches helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 16:13:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Scripts-not-running-in-JMP-15/m-p/233619#M46312</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2019-11-13T16:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: JSL Scripts not running in JMP 15</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Scripts-not-running-in-JMP-15/m-p/234089#M46420</link>
      <description>&lt;P&gt;Hi, Both options work. Although I don't seem to need to set "&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: black; direction: ltr; font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace; font-size: inherit; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 1.5; -ms-hyphens: none; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px white; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-break: normal; word-spacing: normal;"&gt;dbSelected &lt;/SPAN&gt;&lt;SPAN class="token operator" style="box-sizing: border-box; color: #000000; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token string" style="box-sizing: border-box; color: #800080; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;"Proda"&lt;/SPAN&gt;&lt;SPAN class="token punctuation" style="box-sizing: border-box; color: #000000; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;;" before the modal window.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="token punctuation" style="box-sizing: border-box; color: #000000; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;Thank you very much. Rewriting scripts now...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 07:45:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Scripts-not-running-in-JMP-15/m-p/234089#M46420</guid>
      <dc:creator>Ole</dc:creator>
      <dc:date>2019-11-18T07:45:57Z</dc:date>
    </item>
  </channel>
</rss>

