<?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 Referencing Box Plot outliers checkbox in Graph Builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Referencing-Box-Plot-outliers-checkbox-in-Graph-Builder/m-p/675714#M86264</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How can I reference the checkbox in the box plot option using jsl?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the following but doesn't work. Any Suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;checkboxes = nw &amp;lt;&amp;lt; XPath("(//OutlineBox[text()='Plots']//OutlineBox[text()='Box Plot']//CheckBoxBox)");
checkboxes[N Items(checkboxes)]&amp;nbsp;&amp;lt;&amp;lt; Set All(0);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jackie__0-1694177318187.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56391iE68B92E79472C3E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jackie__0-1694177318187.png" alt="Jackie__0-1694177318187.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Semiconductor Capability.jmp" );

List1 = {"NPN1", "PNP1", "PNP2", "NPN2", "PNP3", "IVP1"};
List2 = {"PNP4", "NPN3", "IVP2", "NPN4", "SIT1"};
List3 = {"INM1", "INM2", "VPM1", "VPM2", "VPM3"};
List4 = {"SNM1", "SPM1", "NPN5", "EP2", "ZD6"};

var expr1 = Expr( Variables() );
For( c = 1, c &amp;lt;= N Items( List1 ), c++,
	x expr1 = Expr(
		X( Position( 1 ), Combine( "Parallel Merged" ) )
	);
	Insert Into( x expr1, List1[c], 1 );
	Insert Into( var expr1, Name Expr( x expr1 ) );
);

var expr2 = Expr( Variables() );
For( c = 1, c &amp;lt;= N Items( List2 ), c++,
	x expr2 = Expr(
		X( Position( 1 ), Combine( "Parallel Merged" ) )
	);
	Insert Into( x expr2, List2[c], 1 );
	Insert Into( var expr2, Name Expr( x expr2 ) );
);

var expr3 = Expr( Variables() );
For( c = 1, c &amp;lt;= N Items( List3 ), c++,
	x expr3 = Expr(
		X( Position( 1 ), Combine( "Parallel Merged" ) )
	);
	Insert Into( x expr3, List3[c], 1 );
	Insert Into( var expr3, Name Expr( x expr3 ) );
);

var expr4 = Expr( Variables() );
For( c = 1, c &amp;lt;= N Items( List4 ), c++,
	x expr4 = Expr(
		X( Position( 1 ), Combine( "Parallel Merged" ) )
	);
	Insert Into( x expr4, List4[c], 1 );
	Insert Into( var expr4, Name Expr( x expr4 ) );
);


lists = {"List1", "List2", "List3", "List4"};
var = {};
gbv = {};

For( i = 1, i &amp;lt;= 4, i++,
	Insert Into( var, Name Expr( Eval( Parse( "var expr" || Char( i ) ) ) ) );
	Insert Into( gbv, Parse( "vvv" || Char( i ) ) );
);

nw = New Window( "Plots",
	Show Menu( 0 ),
	show toolbars( 0 ),
	H List Box(

		Check Box(
			{"Summary"}, 
						
			&amp;lt;&amp;lt;Set Function(
				Function( {self}, 
							
					sel = self &amp;lt;&amp;lt; get selected();
					If( N Items( sel ) &amp;gt; 0,
						For( i = 1, i &amp;lt;= N Items( lists ), i++,
							If( N Items( Eval( Parse( lists[i] ) ) ) &amp;gt; 0,
								nw[lists[i], Outline Box( 1 )] &amp;lt;&amp;lt; append(
										 
					
									V Scroll Box(
										size( 580 ),
										Border Box( Left( 5 ), Right( 5 ), Top( 5 ), Bottom( 5 ), Sides( 15 ),
											Tabulate(
												Show Control Panel( 0 ),
												Set Format( Uniform Format( 10, 2 ) ),
												Add Table(
													Column Table( Statistics( Mean, Std Dev ) ),
													Row Table(
														Analysis Columns(
															Eval( Parse( lists[i] ) )
								
														)
													)
												), 
						
						
						
												SendToReport(
													Dispatch( {}, "Tabulate", OutlineBox, {Set Title( "Summary Stats" )} )
	
					
												)
											)
										)
									)
											
											
										
										
									
								) &amp;lt;&amp;lt; Visibility( "Visible" );
			
							)
						);
								
					,
					/// Xpath syntax

	nw &amp;lt;&amp;lt; XPath( "//Outlinebox[@helpKey = 'Summary Stats']" ) &amp;lt;&amp;lt; delete;
							
								
								
								
								
					);
				);
						
			)
	
	
	
		),
		V List Box( tb = Tab Box() )
	)
);

For( i = 1, i &amp;lt;= N Items( lists ), i++,
	tb &amp;lt;&amp;lt; Add(
		lists[i],
		V List Box(
			H List Box(
				Eval(
					Eval Expr(
						gb = dt &amp;lt;&amp;lt; Graph Builder(
							Size( 1117, 781 ),
							Show Control Panel( 0 ), 
						
							Expr( Name Expr( var[i] ) ),
							Elements(
								Histogram(
									X( 1 ),
									X( 2 ),
									X( 3 ),
									X( 4 ),
									X( 5 ),
									X( 6 ),
									X( 7 ),
									X( 8 ),
									X( 9 ),
									X( 10 ),
									X( 11 ),
									X( 12 ),
									X( 13 ),
									X( 14 ),
									X( 15 ),
									X( 16 ), 
									
									Legend( 2 ), 
							
								),
								Box Plot(
									X( 1 ),
									X( 2 ),
									X( 3 ),
									X( 4 ),
									X( 5 ),
									X( 6 ),
									X( 7 ),
									X( 8 ),
									X( 9 ),
									X( 10 ),
									X( 11 ),
									X( 12 ),
									X( 13 ),
									X( 14 ),
									X( 15 ),
									X( 16 ), 
									
									Legend( 3 ),
									Outliers( 0 )
								)
							)
						)
					)
				),
				sumsta = Outline Box( 
					
					lists[i],
					&amp;lt;&amp;lt;visibility( "Collapse" )
						
						
				)
					
				
			)
		)
	);

				
	
	
	
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 08 Sep 2023 12:54:47 GMT</pubDate>
    <dc:creator>Jackie_</dc:creator>
    <dc:date>2023-09-08T12:54:47Z</dc:date>
    <item>
      <title>Referencing Box Plot outliers checkbox in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Referencing-Box-Plot-outliers-checkbox-in-Graph-Builder/m-p/675714#M86264</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How can I reference the checkbox in the box plot option using jsl?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the following but doesn't work. Any Suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;checkboxes = nw &amp;lt;&amp;lt; XPath("(//OutlineBox[text()='Plots']//OutlineBox[text()='Box Plot']//CheckBoxBox)");
checkboxes[N Items(checkboxes)]&amp;nbsp;&amp;lt;&amp;lt; Set All(0);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jackie__0-1694177318187.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56391iE68B92E79472C3E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jackie__0-1694177318187.png" alt="Jackie__0-1694177318187.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Semiconductor Capability.jmp" );

List1 = {"NPN1", "PNP1", "PNP2", "NPN2", "PNP3", "IVP1"};
List2 = {"PNP4", "NPN3", "IVP2", "NPN4", "SIT1"};
List3 = {"INM1", "INM2", "VPM1", "VPM2", "VPM3"};
List4 = {"SNM1", "SPM1", "NPN5", "EP2", "ZD6"};

var expr1 = Expr( Variables() );
For( c = 1, c &amp;lt;= N Items( List1 ), c++,
	x expr1 = Expr(
		X( Position( 1 ), Combine( "Parallel Merged" ) )
	);
	Insert Into( x expr1, List1[c], 1 );
	Insert Into( var expr1, Name Expr( x expr1 ) );
);

var expr2 = Expr( Variables() );
For( c = 1, c &amp;lt;= N Items( List2 ), c++,
	x expr2 = Expr(
		X( Position( 1 ), Combine( "Parallel Merged" ) )
	);
	Insert Into( x expr2, List2[c], 1 );
	Insert Into( var expr2, Name Expr( x expr2 ) );
);

var expr3 = Expr( Variables() );
For( c = 1, c &amp;lt;= N Items( List3 ), c++,
	x expr3 = Expr(
		X( Position( 1 ), Combine( "Parallel Merged" ) )
	);
	Insert Into( x expr3, List3[c], 1 );
	Insert Into( var expr3, Name Expr( x expr3 ) );
);

var expr4 = Expr( Variables() );
For( c = 1, c &amp;lt;= N Items( List4 ), c++,
	x expr4 = Expr(
		X( Position( 1 ), Combine( "Parallel Merged" ) )
	);
	Insert Into( x expr4, List4[c], 1 );
	Insert Into( var expr4, Name Expr( x expr4 ) );
);


lists = {"List1", "List2", "List3", "List4"};
var = {};
gbv = {};

For( i = 1, i &amp;lt;= 4, i++,
	Insert Into( var, Name Expr( Eval( Parse( "var expr" || Char( i ) ) ) ) );
	Insert Into( gbv, Parse( "vvv" || Char( i ) ) );
);

nw = New Window( "Plots",
	Show Menu( 0 ),
	show toolbars( 0 ),
	H List Box(

		Check Box(
			{"Summary"}, 
						
			&amp;lt;&amp;lt;Set Function(
				Function( {self}, 
							
					sel = self &amp;lt;&amp;lt; get selected();
					If( N Items( sel ) &amp;gt; 0,
						For( i = 1, i &amp;lt;= N Items( lists ), i++,
							If( N Items( Eval( Parse( lists[i] ) ) ) &amp;gt; 0,
								nw[lists[i], Outline Box( 1 )] &amp;lt;&amp;lt; append(
										 
					
									V Scroll Box(
										size( 580 ),
										Border Box( Left( 5 ), Right( 5 ), Top( 5 ), Bottom( 5 ), Sides( 15 ),
											Tabulate(
												Show Control Panel( 0 ),
												Set Format( Uniform Format( 10, 2 ) ),
												Add Table(
													Column Table( Statistics( Mean, Std Dev ) ),
													Row Table(
														Analysis Columns(
															Eval( Parse( lists[i] ) )
								
														)
													)
												), 
						
						
						
												SendToReport(
													Dispatch( {}, "Tabulate", OutlineBox, {Set Title( "Summary Stats" )} )
	
					
												)
											)
										)
									)
											
											
										
										
									
								) &amp;lt;&amp;lt; Visibility( "Visible" );
			
							)
						);
								
					,
					/// Xpath syntax

	nw &amp;lt;&amp;lt; XPath( "//Outlinebox[@helpKey = 'Summary Stats']" ) &amp;lt;&amp;lt; delete;
							
								
								
								
								
					);
				);
						
			)
	
	
	
		),
		V List Box( tb = Tab Box() )
	)
);

For( i = 1, i &amp;lt;= N Items( lists ), i++,
	tb &amp;lt;&amp;lt; Add(
		lists[i],
		V List Box(
			H List Box(
				Eval(
					Eval Expr(
						gb = dt &amp;lt;&amp;lt; Graph Builder(
							Size( 1117, 781 ),
							Show Control Panel( 0 ), 
						
							Expr( Name Expr( var[i] ) ),
							Elements(
								Histogram(
									X( 1 ),
									X( 2 ),
									X( 3 ),
									X( 4 ),
									X( 5 ),
									X( 6 ),
									X( 7 ),
									X( 8 ),
									X( 9 ),
									X( 10 ),
									X( 11 ),
									X( 12 ),
									X( 13 ),
									X( 14 ),
									X( 15 ),
									X( 16 ), 
									
									Legend( 2 ), 
							
								),
								Box Plot(
									X( 1 ),
									X( 2 ),
									X( 3 ),
									X( 4 ),
									X( 5 ),
									X( 6 ),
									X( 7 ),
									X( 8 ),
									X( 9 ),
									X( 10 ),
									X( 11 ),
									X( 12 ),
									X( 13 ),
									X( 14 ),
									X( 15 ),
									X( 16 ), 
									
									Legend( 3 ),
									Outliers( 0 )
								)
							)
						)
					)
				),
				sumsta = Outline Box( 
					
					lists[i],
					&amp;lt;&amp;lt;visibility( "Collapse" )
						
						
				)
					
				
			)
		)
	);

				
	
	
	
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Sep 2023 12:54:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Referencing-Box-Plot-outliers-checkbox-in-Graph-Builder/m-p/675714#M86264</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2023-09-08T12:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Box Plot outliers checkbox in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Referencing-Box-Plot-outliers-checkbox-in-Graph-Builder/m-p/675757#M86265</link>
      <description>&lt;P&gt;Use &amp;lt;&amp;lt; Get XML to see what you are looking for&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1694178929369.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56394i493DA4AE1DC995E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1694178929369.png" alt="jthi_1-1694178929369.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And then use pure XPath or combine it with other ways of getting references&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;(((nw &amp;lt;&amp;lt; XPath("//MouseBox/TextBox[text()='Outliers']")) &amp;lt;&amp;lt; parent) &amp;lt;&amp;lt; sib)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit:&lt;/P&gt;
&lt;P&gt;With XPath you could use something like this or make it more robust&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;(nw &amp;lt;&amp;lt; XPath("//MouseBox/TextBox[text()='Outliers']/../following-sibling::CheckBoxBox[1]"))&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Sep 2023 13:24:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Referencing-Box-Plot-outliers-checkbox-in-Graph-Builder/m-p/675757#M86265</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-09-08T13:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Box Plot outliers checkbox in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Referencing-Box-Plot-outliers-checkbox-in-Graph-Builder/m-p/675766#M86266</link>
      <description>&lt;P&gt;Awesome! Thanks Jarmo&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 13:25:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Referencing-Box-Plot-outliers-checkbox-in-Graph-Builder/m-p/675766#M86266</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2023-09-08T13:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Box Plot outliers checkbox in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Referencing-Box-Plot-outliers-checkbox-in-Graph-Builder/m-p/675810#M86267</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;It works only for one tab. How could I reference all the checkboxes for all tabs?&lt;BR /&gt;&lt;BR /&gt;Edit: NVM it works.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 13:42:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Referencing-Box-Plot-outliers-checkbox-in-Graph-Builder/m-p/675810#M86267</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2023-09-08T13:42:39Z</dc:date>
    </item>
  </channel>
</rss>

