<?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 &amp;quot;Graph Builder&amp;quot; adds On Colse() function, exception when encryption runs in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/quot-Graph-Builder-quot-adds-On-Colse-function-exception-when/m-p/765802#M94558</link>
    <description>&lt;P&gt;&lt;SPAN&gt;JMP community expert, I'm from China.&lt;BR /&gt;The following problem description comes from machine translation. Please don't mind that the grammar can be a little strange.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am encountering some issues with a potential bug in the JMP17 script. I would appreciate it if you could seek assistance from the experts to address this matter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have created a script for "Graph Builder". In order to automatically close the referenced data table when the Graph Builder is closed, I have added the following script using On Close():&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;gb &amp;lt;&amp;lt; On Close( Close( gb &amp;lt;&amp;lt; Get Data Table, nosave ) );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But since I have a lot of data tables and need to generate graphs simultaneously through the for() loop, I optimized the following script:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Eval( Eval Expr( Expr( gb ) &amp;lt;&amp;lt; On Close( Close( Expr( gb ) &amp;lt;&amp;lt; Get Data Table, nosave ) ) ) );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, an unexpected issue arose. While there were no problems running the script normally, when I encrypted and ran it, an exception was reported upon closing the graph, which has left me quite perplexed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fengzhuansha_0-1718352978024.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65187iB230D9C7AB5DEA4B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fengzhuansha_0-1718352978024.png" alt="fengzhuansha_0-1718352978024.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The following is a complete test script. Your help in analyzing this problem would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

fileList = {"big class.jmp", "Big Class Families.jmp"};

For Each( {file, i}, fileList,
	dt = Open( Eval Insert( "$sample_data/^file^" ), "invisible" );
	gb = dt &amp;lt;&amp;lt; Graph Builder(
		Size( 917, 645 ),
		Variables( X( :sex ), Y( :height ) ),
		Elements(
			Points( X, Y, Legend( 5 ) ),
			Box Plot( X, Y, Legend( 6 ) ),
			Caption Box( X, Y, Legend( 9 ), Summary Statistic( "Mean" ), Location( "Graph per factor" ), X Position( "Left" ) )
		),
		SendToReport(
			Dispatch( {}, "Points", OutlineBox, {Close( 1 )} ),
			Dispatch( {}, "Box Plot", OutlineBox, {Close( 1 )} ),
			Dispatch( {}, "Caption Box", OutlineBox, {Close( 1 )} ),
			Dispatch( {}, "Caption Box", Outline Box( 2 ), {Close( 1 )} )
		)
	);
	Eval( Eval Expr( Expr( gb ) &amp;lt;&amp;lt; On Close( Close( Expr( gb ) &amp;lt;&amp;lt; Get Data Table, nosave ) ) ) );
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2024 08:32:34 GMT</pubDate>
    <dc:creator>fengzhuansha</dc:creator>
    <dc:date>2024-06-14T08:32:34Z</dc:date>
    <item>
      <title>"Graph Builder" adds On Colse() function, exception when encryption runs</title>
      <link>https://community.jmp.com/t5/Discussions/quot-Graph-Builder-quot-adds-On-Colse-function-exception-when/m-p/765802#M94558</link>
      <description>&lt;P&gt;&lt;SPAN&gt;JMP community expert, I'm from China.&lt;BR /&gt;The following problem description comes from machine translation. Please don't mind that the grammar can be a little strange.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am encountering some issues with a potential bug in the JMP17 script. I would appreciate it if you could seek assistance from the experts to address this matter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have created a script for "Graph Builder". In order to automatically close the referenced data table when the Graph Builder is closed, I have added the following script using On Close():&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;gb &amp;lt;&amp;lt; On Close( Close( gb &amp;lt;&amp;lt; Get Data Table, nosave ) );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But since I have a lot of data tables and need to generate graphs simultaneously through the for() loop, I optimized the following script:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Eval( Eval Expr( Expr( gb ) &amp;lt;&amp;lt; On Close( Close( Expr( gb ) &amp;lt;&amp;lt; Get Data Table, nosave ) ) ) );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, an unexpected issue arose. While there were no problems running the script normally, when I encrypted and ran it, an exception was reported upon closing the graph, which has left me quite perplexed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fengzhuansha_0-1718352978024.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65187iB230D9C7AB5DEA4B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fengzhuansha_0-1718352978024.png" alt="fengzhuansha_0-1718352978024.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The following is a complete test script. Your help in analyzing this problem would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

fileList = {"big class.jmp", "Big Class Families.jmp"};

For Each( {file, i}, fileList,
	dt = Open( Eval Insert( "$sample_data/^file^" ), "invisible" );
	gb = dt &amp;lt;&amp;lt; Graph Builder(
		Size( 917, 645 ),
		Variables( X( :sex ), Y( :height ) ),
		Elements(
			Points( X, Y, Legend( 5 ) ),
			Box Plot( X, Y, Legend( 6 ) ),
			Caption Box( X, Y, Legend( 9 ), Summary Statistic( "Mean" ), Location( "Graph per factor" ), X Position( "Left" ) )
		),
		SendToReport(
			Dispatch( {}, "Points", OutlineBox, {Close( 1 )} ),
			Dispatch( {}, "Box Plot", OutlineBox, {Close( 1 )} ),
			Dispatch( {}, "Caption Box", OutlineBox, {Close( 1 )} ),
			Dispatch( {}, "Caption Box", Outline Box( 2 ), {Close( 1 )} )
		)
	);
	Eval( Eval Expr( Expr( gb ) &amp;lt;&amp;lt; On Close( Close( Expr( gb ) &amp;lt;&amp;lt; Get Data Table, nosave ) ) ) );
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 08:32:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/quot-Graph-Builder-quot-adds-On-Colse-function-exception-when/m-p/765802#M94558</guid>
      <dc:creator>fengzhuansha</dc:creator>
      <dc:date>2024-06-14T08:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: "Graph Builder" adds On Colse() function, exception when encryption runs</title>
      <link>https://community.jmp.com/t5/Discussions/quot-Graph-Builder-quot-adds-On-Colse-function-exception-when/m-p/765843#M94562</link>
      <description>&lt;P&gt;I have replicated your On Close error with an encrypted script.&amp;nbsp; I believe it is a JMP bug and I suggest that you submit the issue to JMP Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;support@jmp.com&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 09:08:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/quot-Graph-Builder-quot-adds-On-Colse-function-exception-when/m-p/765843#M94562</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-06-14T09:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: "Graph Builder" adds On Colse() function, exception when encryption runs</title>
      <link>https://community.jmp.com/t5/Discussions/quot-Graph-Builder-quot-adds-On-Colse-function-exception-when/m-p/765899#M94565</link>
      <description>&lt;P&gt;I'm not sure where it goes wrong when the script is encrypted, but this seems to work (I modified the on close and expression evaluation for it)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

fileList = {"big class.jmp", "Big Class Families.jmp"};

For Each( {file, i}, fileList,
	dt = Open(Eval Insert("$sample_data/^file^"), "invisible");
	gb = dt &amp;lt;&amp;lt; Graph Builder(
		Size(917, 645),
		Variables(X(:sex), Y(:height)),
		Elements(
			Points(X, Y, Legend(5)),
			Box Plot(X, Y, Legend(6)),
			Caption Box(
				X,
				Y,
				Legend(9),
				Summary Statistic("Mean"),
				Location("Graph per factor"),
				X Position("Left")
			)
		),
		SendToReport(
			Dispatch({}, "Points", OutlineBox, {Close(1)}),
			Dispatch({}, "Box Plot", OutlineBox, {Close(1)}),
			Dispatch({}, "Caption Box", OutlineBox, {Close(1)}),
			Dispatch({}, "Caption Box", Outline Box(2), {Close(1)})
		)
	);
	Eval(EvalExpr(
		gb &amp;lt;&amp;lt; On Close(
			Close(Expr(dt), nosave);
		);		
	));
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Jun 2024 10:52:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/quot-Graph-Builder-quot-adds-On-Colse-function-exception-when/m-p/765899#M94565</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-06-14T10:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: "Graph Builder" adds On Colse() function, exception when encryption runs</title>
      <link>https://community.jmp.com/t5/Discussions/quot-Graph-Builder-quot-adds-On-Colse-function-exception-when/m-p/766207#M94622</link>
      <description>&lt;P&gt;Thank you, &lt;SPAN&gt;Jarmo&lt;/SPAN&gt;. This is indeed a good method.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I use "gb &amp;lt;&amp;lt; On Close(Close(gb &amp;lt;&amp;lt; Get Data Table, nosave))" It is to bind gb and dt, but I seem to forget that they are originally bound.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;While it should be syntactically correct, this could indeed be an internal error in a JSL script. I'll take &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;'s advice and refer this issue to JMP Support.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 01:03:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/quot-Graph-Builder-quot-adds-On-Colse-function-exception-when/m-p/766207#M94622</guid>
      <dc:creator>fengzhuansha</dc:creator>
      <dc:date>2024-06-17T01:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: "Graph Builder" adds On Colse() function, exception when encryption runs</title>
      <link>https://community.jmp.com/t5/Discussions/quot-Graph-Builder-quot-adds-On-Colse-function-exception-when/m-p/766208#M94623</link>
      <description>&lt;P&gt;Thank you, Jim.&lt;BR /&gt;This could really be a JSL Bug, as Jarmo doesn't seem to be able to explain the cause of this error either. I will accept your suggestion to submit it to JMP Support.&lt;BR /&gt;In addition, Jarmo shares a clever way to get around this problem that we can learn together.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 01:14:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/quot-Graph-Builder-quot-adds-On-Colse-function-exception-when/m-p/766208#M94623</guid>
      <dc:creator>fengzhuansha</dc:creator>
      <dc:date>2024-06-17T01:14:36Z</dc:date>
    </item>
  </channel>
</rss>

