<?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: Script works as expected in JMP13 but throws an error in JMP16 ? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Script-works-as-expected-in-JMP13-but-throws-an-error-in-JMP16/m-p/453109#M69995</link>
    <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;is right. Here's a version of your script with a Button Box inside the V List Box that gets the user-entered text when the window closes. As for "Glue", that refers to the semicolon, which is the glue operator (see&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/utility-functions.shtml?os=mac&amp;amp;source=application&amp;amp;utm_source=helpmenu&amp;amp;utm_medium=application#ww2791260" target="_blank" rel="noopener"&gt;Glue() function&lt;/A&gt;).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here (1);
//clear symbols ();
//clear log ();
dlg = New Window("Please enter the following", &amp;lt;&amp;lt; Modal, &amp;lt;&amp;lt;Return Result,
	Border Box(Top(20), Bottom(0), Left(20), Right(20),
		V List Box(	tb1= Text Box("partID: "),
					teb1 = Text Edit Box("part101.011.01", &amp;lt;&amp;lt;Set Width(150)),
					teb1&amp;lt;&amp;lt; Set Hint( "e.g. part101.011.01" );

					tb6=Text Box("User Comment: "),
					teb6 = Text Edit Box("", &amp;lt;&amp;lt;Set Width(150)),
					teb6&amp;lt;&amp;lt; Set Hint( "e.g. Fails are a test artefact" );
					teb6&amp;lt;&amp;lt; Fixed Size( 0 );
		
					tb1&amp;lt;&amp;lt; set font style("bold");
					tb6&amp;lt;&amp;lt; set font style("bold");
	
					Button Box( "OK", 
						partID = teb1 &amp;lt;&amp;lt; Get Text;
						custom text = teb6 &amp;lt;&amp;lt; Get Text;
					)
		);         
	);
);

If (dlg["Button"]==-1, Throw());

//Show(partID);
//Show (custom text);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jan 2022 19:24:46 GMT</pubDate>
    <dc:creator>Ross_Metusalem</dc:creator>
    <dc:date>2022-01-21T19:24:46Z</dc:date>
    <item>
      <title>Script works as expected in JMP13 but throws an error in JMP16 ?</title>
      <link>https://community.jmp.com/t5/Discussions/Script-works-as-expected-in-JMP13-but-throws-an-error-in-JMP16/m-p/453093#M69992</link>
      <description>&lt;P&gt;The following script works fine in JMP 13.2.1 and produces expected output but throws an error when run in JMP16.1.0. What part in the script is not acceptable in JMP16?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here (1);
//clear symbols ();
//clear log ();
dlg = New Window("Please enter the following", &amp;lt;&amp;lt; Modal, &amp;lt;&amp;lt;Return Result,
	Border Box(Top(20), Bottom(0), Left(20), Right(20),
		V List Box(	tb1= Text Box("partID: "),
					teb1 = Text Edit Box("part101.011.01", &amp;lt;&amp;lt;Set Width(150)),
					teb1&amp;lt;&amp;lt; Set Hint( "e.g. part101.011.01" );

					tb6=Text Box("User Comment: "),
					teb6 = Text Edit Box("", &amp;lt;&amp;lt;Set Width(150)),
					teb6&amp;lt;&amp;lt; Set Hint( "e.g. Fails are a test artefact" );
					teb6&amp;lt;&amp;lt; Fixed Size( 0 );
		
					tb1&amp;lt;&amp;lt; set font style("bold");
					tb6&amp;lt;&amp;lt; set font style("bold");
		);         
	);
);
					partID = teb1 &amp;lt;&amp;lt; Get Text;
					custom text = teb6 &amp;lt;&amp;lt; Get Text;

If (dlg["Button"]==-1, Throw());

//Show(partID);
//Show (custom text);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;JMP 16.1.0 gives the following error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JMP16error.PNG" style="width: 585px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/39171i5C73133F7E60167C/image-size/large?v=v2&amp;amp;px=999" role="button" title="JMP16error.PNG" alt="JMP16error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Not sure where 'Glue' is coming from?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:09:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-works-as-expected-in-JMP13-but-throws-an-error-in-JMP16/m-p/453093#M69992</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-06-09T18:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Script works as expected in JMP13 but throws an error in JMP16 ?</title>
      <link>https://community.jmp.com/t5/Discussions/Script-works-as-expected-in-JMP13-but-throws-an-error-in-JMP16/m-p/453101#M69994</link>
      <description>&lt;P&gt;I think the cause of the issue is how newer version of JMP handles the values which are returned from modal windows.After the modal window is closed, you don't have access to teb1 and teb6 anymore. This help topic should help you get the script converted to newer jmp version: &lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/convert-deprecated-dialog-to-new-window.shtml#ww741642" target="_blank" rel="noopener"&gt;Convert Deprecated Dialog to New Window&lt;/A&gt; (get the when OK is pressed or from dlg with dlg["teb1"] and so on).&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 18:38:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-works-as-expected-in-JMP13-but-throws-an-error-in-JMP16/m-p/453101#M69994</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-01-21T18:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Script works as expected in JMP13 but throws an error in JMP16 ?</title>
      <link>https://community.jmp.com/t5/Discussions/Script-works-as-expected-in-JMP13-but-throws-an-error-in-JMP16/m-p/453109#M69995</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;is right. Here's a version of your script with a Button Box inside the V List Box that gets the user-entered text when the window closes. As for "Glue", that refers to the semicolon, which is the glue operator (see&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/utility-functions.shtml?os=mac&amp;amp;source=application&amp;amp;utm_source=helpmenu&amp;amp;utm_medium=application#ww2791260" target="_blank" rel="noopener"&gt;Glue() function&lt;/A&gt;).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here (1);
//clear symbols ();
//clear log ();
dlg = New Window("Please enter the following", &amp;lt;&amp;lt; Modal, &amp;lt;&amp;lt;Return Result,
	Border Box(Top(20), Bottom(0), Left(20), Right(20),
		V List Box(	tb1= Text Box("partID: "),
					teb1 = Text Edit Box("part101.011.01", &amp;lt;&amp;lt;Set Width(150)),
					teb1&amp;lt;&amp;lt; Set Hint( "e.g. part101.011.01" );

					tb6=Text Box("User Comment: "),
					teb6 = Text Edit Box("", &amp;lt;&amp;lt;Set Width(150)),
					teb6&amp;lt;&amp;lt; Set Hint( "e.g. Fails are a test artefact" );
					teb6&amp;lt;&amp;lt; Fixed Size( 0 );
		
					tb1&amp;lt;&amp;lt; set font style("bold");
					tb6&amp;lt;&amp;lt; set font style("bold");
	
					Button Box( "OK", 
						partID = teb1 &amp;lt;&amp;lt; Get Text;
						custom text = teb6 &amp;lt;&amp;lt; Get Text;
					)
		);         
	);
);

If (dlg["Button"]==-1, Throw());

//Show(partID);
//Show (custom text);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 19:24:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-works-as-expected-in-JMP13-but-throws-an-error-in-JMP16/m-p/453109#M69995</guid>
      <dc:creator>Ross_Metusalem</dc:creator>
      <dc:date>2022-01-21T19:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Script works as expected in JMP13 but throws an error in JMP16 ?</title>
      <link>https://community.jmp.com/t5/Discussions/Script-works-as-expected-in-JMP13-but-throws-an-error-in-JMP16/m-p/453123#M69998</link>
      <description>&lt;P&gt;&lt;LI-MESSAGE title="Modal Dialogs" uid="436177" url="https://community.jmp.com/t5/Uncharted/Modal-Dialogs/m-p/436177#U436177" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp; has a bit of the back story on why it changed.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 19:41:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-works-as-expected-in-JMP13-but-throws-an-error-in-JMP16/m-p/453123#M69998</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2022-01-21T19:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Script works as expected in JMP13 but throws an error in JMP16 ?</title>
      <link>https://community.jmp.com/t5/Discussions/Script-works-as-expected-in-JMP13-but-throws-an-error-in-JMP16/m-p/453130#M70000</link>
      <description>&lt;P&gt;That was an informative read, &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;.&amp;nbsp;Makes me realize I've probably been doing it a little wrong and I might instead have suggested the following to &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/28235"&gt;@Neo&lt;/a&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here (1);

dlg = New Window("Please enter the following", &amp;lt;&amp;lt; Modal, &amp;lt;&amp;lt;Return Result,
	Border Box(Top(20), Bottom(0), Left(20), Right(20),
		V List Box(	tb1= Text Box("partID: "),
					teb1 = Text Edit Box("part101.011.01", &amp;lt;&amp;lt;Set Width(150)),
					teb1&amp;lt;&amp;lt; Set Hint( "e.g. part101.011.01" );

					tb6=Text Box("User Comment: "),
					teb6 = Text Edit Box("", &amp;lt;&amp;lt;Set Width(150)),
					teb6&amp;lt;&amp;lt; Set Hint( "e.g. Fails are a test artefact" );
					teb6&amp;lt;&amp;lt; Fixed Size( 0 );
		
					tb1&amp;lt;&amp;lt; set font style("bold");
					tb6&amp;lt;&amp;lt; set font style("bold");
		);         
	);
);

partID = dlg["teb1"];
custom text = dlg["teb6"];&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Jan 2022 20:06:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-works-as-expected-in-JMP13-but-throws-an-error-in-JMP16/m-p/453130#M70000</guid>
      <dc:creator>Ross_Metusalem</dc:creator>
      <dc:date>2022-01-21T20:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Script works as expected in JMP13 but throws an error in JMP16 ?</title>
      <link>https://community.jmp.com/t5/Discussions/Script-works-as-expected-in-JMP13-but-throws-an-error-in-JMP16/m-p/453277#M70020</link>
      <description>&lt;P&gt;When using &amp;lt;&amp;lt; Return Result there might sometimes be &lt;A href="https://community.jmp.com/t5/Discussions/Modal-window-return-result-and-Filter-Col-Selector-Col-List-Box/td-p/437434" target="_blank" rel="noopener"&gt;unexpected (at least they were for me) results,&lt;/A&gt; if you are using more complicated display boxes than text and number edit boxes, that are good to keep in mind. But in this case if there are only Text Edit Boxes I think getting the results after Modal has closed is simplest and cleanest solution.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jan 2022 09:16:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-works-as-expected-in-JMP13-but-throws-an-error-in-JMP16/m-p/453277#M70020</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-01-22T09:16:53Z</dc:date>
    </item>
  </channel>
</rss>

