<?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: Need Help with Row state handler or event handler in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Need-Help-with-Row-state-handler-or-event-handler/m-p/813056#M99405</link>
    <description>&lt;P&gt;Most likely there are better options, but here is one&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");
col_names = dt &amp;lt;&amp;lt; get column group("Processes");
tab = dt &amp;lt;&amp;lt; Tabulate(
	Add Table(Column Table(Statistics(Mean, Std Dev)), Row Table(Analysis Columns(Eval(col_names))))
);
dt2 = tab &amp;lt;&amp;lt; Make Into Data Table;

tab &amp;lt;&amp;lt; close window;

nw = New Window("",
	&amp;lt;&amp;lt;onclose(
		rs = 0;
		1;
	),
	Panel Box(,
		tb = Tab Box(
			Tab Page Box(
				"Summary",
				V Scroll Box(
					tbbox = Table Box(
						String Col Box("Tests", (dt2:Analysis Columns &amp;lt;&amp;lt; get values)),
						Number Col Box("Mean", (dt2:Mean &amp;lt;&amp;lt; get values)),
						Number Col Box("Std Dev", (dt2:Std Dev &amp;lt;&amp;lt; get values)),
						&amp;lt;&amp;lt;Set Selectable Rows(1)
					)
				)
			),
			Tab Page Box(
				"Histogram",
				vsb = V Scroll Box(
					V List Box(
						For Each({col, idx}, col_names,
							dist = dt &amp;lt;&amp;lt; distribution(
								Stack(1),
								Continuous Distribution(
									Column(col_names[idx]),
									Horizontal Layout(1),
									Normal Quantile Plot(1),
									Customize Summary Statistics(
										Std Err Mean(0),
										Upper Mean Confidence Interval(0),
										Lower Mean Confidence Interval(0)
									),
									Vertical(1),
									Process Capability(0)
				
								)
							)
						)
					)
				)
			)
		)
	)
);
Close(dt2, nosave);

rep_height = dist &amp;lt;&amp;lt; get height;

fun = Function({a},
	r = a &amp;lt;&amp;lt; Get Selected Rows;
	tb &amp;lt;&amp;lt; set selected(2);
	vsb &amp;lt;&amp;lt; Set Scroll Position(0, (r[1] - 1) * rep_height);
);

rs = tbbox &amp;lt;&amp;lt; Set Row Change Function(fun);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 14 Nov 2024 15:46:21 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-11-14T15:46:21Z</dc:date>
    <item>
      <title>Need Help with Row state handler or event handler</title>
      <link>https://community.jmp.com/t5/Discussions/Need-Help-with-Row-state-handler-or-event-handler/m-p/813006#M99395</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am working on creating an event handler function that will switch to the histogram tab and scroll to the process distribution when a row in the process table within the summary tab is selected.&lt;BR /&gt;&lt;BR /&gt;For example, if I click on “PNP4” in the table, the function should automatically switch to the histogram tab and scroll to the specific location displaying that process distribution. Any suggestions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jackie__1-1731594438015.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/70156i8FF3E34A5E096A24/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jackie__1-1731594438015.png" alt="Jackie__1-1731594438015.png" /&gt;&lt;/span&gt;&lt;/P&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__2-1731594645758.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/70157i140E3159624F4B6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jackie__2-1731594645758.png" alt="Jackie__2-1731594645758.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the jsl code:&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 );
dt = Open( "$SAMPLE_DATA/Semiconductor Capability.jmp" );
col_names = dt &amp;lt;&amp;lt; get column group( "Processes" );
tab = dt &amp;lt;&amp;lt; Tabulate( Add Table( Column Table( Statistics( Mean, Std Dev ) ), Row Table( Analysis Columns( Eval( col_names ) ) ) ) );
dt2 = tab &amp;lt;&amp;lt; Make Into Data Table;

tab &amp;lt;&amp;lt; close window;

nw = New Window( "", 
	
	&amp;lt;&amp;lt;Type( "Dialog" ),
	&amp;lt;&amp;lt;onclose(
		rs = 0;
		1;
	),
	Panel Box( , 
		
	
		tabbb= Tab Box(
		
		
			"Summary",
			V Scroll Box(
				
				tbbox = Table Box(
					String Col Box( "Tests", (dt2:Analysis Columns &amp;lt;&amp;lt; get values) ), 
								
					Number Col Box( "Mean", (dt2:Mean &amp;lt;&amp;lt; get values) ),
					Number Col Box( "Std Dev", (dt2:Std Dev &amp;lt;&amp;lt; get values) ), 
					
					
				)
			), 
					
					
			"Histogram", 
					
			vsb = V Scroll Box(
						
				V List Box(
							
							
					For Each( {col, idx}, col_names,
						 dt &amp;lt;&amp;lt; distribution(
							Stack( 1 ),
							Continuous Distribution(
								Column( col_names[idx] ),
								Horizontal Layout( 1 ),
								Normal Quantile Plot( 1 ),
								Customize Summary Statistics(
									Std Err Mean( 0 ),
									Upper Mean Confidence Interval( 0 ),
									Lower Mean Confidence Interval( 0 )
								),
								Vertical( 1 ),
								Process Capability( 0 )
			
							)
						)
					)
				)
			)
					
		)
	)
);
Close( dt2, nosave );

tabboxxpath = nw &amp;lt;&amp;lt; XPath("//TabPageBox[text()='Summary']//TableBox");
tabboxxpath &amp;lt;&amp;lt;  Set Selectable Rows( 1 );

fun = Function( {a},
tabbb &amp;lt;&amp;lt; set selected ( 2 );
vsb &amp;lt;&amp;lt; Set Scroll Position( 0, 200 );

);

rs = tbbox &amp;lt;&amp;lt; make row state handler( fun );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 14:55:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-Help-with-Row-state-handler-or-event-handler/m-p/813006#M99395</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2024-11-14T14:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Row state handler or event handler</title>
      <link>https://community.jmp.com/t5/Discussions/Need-Help-with-Row-state-handler-or-event-handler/m-p/813046#M99400</link>
      <description>&lt;P&gt;I know row state handlers in the context of data tables:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1731596668432.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/70158iD2BF554025EFDCE9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1731596668432.png" alt="hogi_0-1731596668432.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interesting, the table box "understands" the command as well - the sense of : doesn't complain.&lt;/P&gt;&lt;P&gt;But it doesn't seem to react on it ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Curious to see the solution ...&lt;BR /&gt;How are the Handlers implemented for the official reports?&lt;BR /&gt;via &lt;FONT face="courier new,courier"&gt;Mouse Box()&lt;/FONT&gt;?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 15:11:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-Help-with-Row-state-handler-or-event-handler/m-p/813046#M99400</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-11-14T15:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Row state handler or event handler</title>
      <link>https://community.jmp.com/t5/Discussions/Need-Help-with-Row-state-handler-or-event-handler/m-p/813053#M99402</link>
      <description>&lt;P&gt;Table Box uses &amp;lt;&amp;lt; set row change function instead of row state handler. Do you have to the "list" view of distributions in a scrollbox (instead you could for example just create one distribution and hidden column switcher to change the column)?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 15:23:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-Help-with-Row-state-handler-or-event-handler/m-p/813053#M99402</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-11-14T15:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Row state handler or event handler</title>
      <link>https://community.jmp.com/t5/Discussions/Need-Help-with-Row-state-handler-or-event-handler/m-p/813054#M99403</link>
      <description>&lt;P&gt;cool : )&lt;/P&gt;&lt;P&gt;&lt;LI-MESSAGE title="Supercharge Your User Interfaces in JSL ( US 2018 113 )" uid="73744" url="https://community.jmp.com/t5/Discovery-Summit-2018/Supercharge-Your-User-Interfaces-in-JSL-US-2018-113/m-p/73744#U73744" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

nw = New Window( "",
	&amp;lt;&amp;lt;Type( "Dialog" ),
		tbbox = Table Box(
			String Col Box( "string", {"A", "B"} ), 						
			Number Col Box( "num", {1, 2} ), &amp;lt;&amp;lt; set selectable rows()
		) 
		
);

fun= Function({this},
	Caption("hello\!N"|| Char(this&amp;lt;&amp;lt; get selected rows))
);

tbbox &amp;lt;&amp;lt; set row change function( fun);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 15:44:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-Help-with-Row-state-handler-or-event-handler/m-p/813054#M99403</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-11-14T15:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Row state handler or event handler</title>
      <link>https://community.jmp.com/t5/Discussions/Need-Help-with-Row-state-handler-or-event-handler/m-p/813055#M99404</link>
      <description>&lt;P&gt;Hi Jarmo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I want to have a list view in the tab scroll box, not the column switcher.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 15:29:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-Help-with-Row-state-handler-or-event-handler/m-p/813055#M99404</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2024-11-14T15:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Row state handler or event handler</title>
      <link>https://community.jmp.com/t5/Discussions/Need-Help-with-Row-state-handler-or-event-handler/m-p/813056#M99405</link>
      <description>&lt;P&gt;Most likely there are better options, but here is one&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");
col_names = dt &amp;lt;&amp;lt; get column group("Processes");
tab = dt &amp;lt;&amp;lt; Tabulate(
	Add Table(Column Table(Statistics(Mean, Std Dev)), Row Table(Analysis Columns(Eval(col_names))))
);
dt2 = tab &amp;lt;&amp;lt; Make Into Data Table;

tab &amp;lt;&amp;lt; close window;

nw = New Window("",
	&amp;lt;&amp;lt;onclose(
		rs = 0;
		1;
	),
	Panel Box(,
		tb = Tab Box(
			Tab Page Box(
				"Summary",
				V Scroll Box(
					tbbox = Table Box(
						String Col Box("Tests", (dt2:Analysis Columns &amp;lt;&amp;lt; get values)),
						Number Col Box("Mean", (dt2:Mean &amp;lt;&amp;lt; get values)),
						Number Col Box("Std Dev", (dt2:Std Dev &amp;lt;&amp;lt; get values)),
						&amp;lt;&amp;lt;Set Selectable Rows(1)
					)
				)
			),
			Tab Page Box(
				"Histogram",
				vsb = V Scroll Box(
					V List Box(
						For Each({col, idx}, col_names,
							dist = dt &amp;lt;&amp;lt; distribution(
								Stack(1),
								Continuous Distribution(
									Column(col_names[idx]),
									Horizontal Layout(1),
									Normal Quantile Plot(1),
									Customize Summary Statistics(
										Std Err Mean(0),
										Upper Mean Confidence Interval(0),
										Lower Mean Confidence Interval(0)
									),
									Vertical(1),
									Process Capability(0)
				
								)
							)
						)
					)
				)
			)
		)
	)
);
Close(dt2, nosave);

rep_height = dist &amp;lt;&amp;lt; get height;

fun = Function({a},
	r = a &amp;lt;&amp;lt; Get Selected Rows;
	tb &amp;lt;&amp;lt; set selected(2);
	vsb &amp;lt;&amp;lt; Set Scroll Position(0, (r[1] - 1) * rep_height);
);

rs = tbbox &amp;lt;&amp;lt; Set Row Change Function(fun);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Nov 2024 15:46:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Need-Help-with-Row-state-handler-or-event-handler/m-p/813056#M99405</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-11-14T15:46:21Z</dc:date>
    </item>
  </channel>
</rss>

