<?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 Process screener column selection in data table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Process-screener-column-selection-in-data-table/m-p/361241#M61082</link>
    <description>&lt;P&gt;Is there a way to have the row that is selected in the Process screener be selected in the data table through JSL?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shampton82_0-1613963244207.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30483iF3667E74ABC586A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shampton82_0-1613963244207.png" alt="shampton82_0-1613963244207.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For example, what script could be used to select this highlighted row item in the datatable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any suggestions!&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 22:06:33 GMT</pubDate>
    <dc:creator>shampton82</dc:creator>
    <dc:date>2023-06-09T22:06:33Z</dc:date>
    <item>
      <title>Process screener column selection in data table</title>
      <link>https://community.jmp.com/t5/Discussions/Process-screener-column-selection-in-data-table/m-p/361241#M61082</link>
      <description>&lt;P&gt;Is there a way to have the row that is selected in the Process screener be selected in the data table through JSL?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shampton82_0-1613963244207.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30483iF3667E74ABC586A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shampton82_0-1613963244207.png" alt="shampton82_0-1613963244207.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For example, what script could be used to select this highlighted row item in the datatable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any suggestions!&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:06:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Process-screener-column-selection-in-data-table/m-p/361241#M61082</guid>
      <dc:creator>shampton82</dc:creator>
      <dc:date>2023-06-09T22:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Process screener column selection in data table</title>
      <link>https://community.jmp.com/t5/Discussions/Process-screener-column-selection-in-data-table/m-p/361273#M61085</link>
      <description>&lt;P&gt;Below is a script that prints to the log the value of the first row and first column to the log.&amp;nbsp; It accesses the value through the Display Tree access capability in JMP.&amp;nbsp; See Display Trees in the Scripting Guide&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tablebox.PNG" style="width: 446px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/30486i6274515692F0752E/image-size/large?v=v2&amp;amp;px=999" role="button" title="tablebox.PNG" alt="tablebox.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" );
ps = dt &amp;lt;&amp;lt; Process Screening(
	Process Variables( :NPN1, :PNP1, :PNP2, :NPN2, :PNP3, :IVP1, :PNP4 ),
	Grouping( :SITE ),
	Control Chart Type( "Indiv and MR" )
);
psr = Report( ps );
Show( (psr[String Col Box( 1 )] &amp;lt;&amp;lt; get)[1] );
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The log output is&lt;/P&gt;
&lt;PRE&gt;(psr[String Col Box(1)] &amp;lt;&amp;lt; get)[1] = "NPN2";&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Feb 2021 06:14:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Process-screener-column-selection-in-data-table/m-p/361273#M61085</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-02-22T06:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Process screener column selection in data table</title>
      <link>https://community.jmp.com/t5/Discussions/Process-screener-column-selection-in-data-table/m-p/361292#M61087</link>
      <description>&lt;P&gt;And building on the example from&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;,&amp;nbsp;you could do something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA\semiconductor capability.jmp" );

ps = dt &amp;lt;&amp;lt; Process Screening(
	Process Variables( :NPN1, :PNP1, :PNP2, :NPN2, :PNP3, :IVP1, :PNP4 ),
	Grouping( :SITE ),
	Control Chart Type( "Indiv and MR" )
);

psr = Report( ps );
tb = psr[Table Box( 1 )];

tb &amp;lt;&amp;lt; setRowChangeFunction( 
						Function( {this},
							// Remove any existing column selection
							dt &amp;lt;&amp;lt; selectColumns([]);
							// Use the current row selection to select table columns
							sr = this &amp;lt;&amp;lt; getSelectedRows;
							cols = {};
							for(c=1, c&amp;lt;=NRow(sr), c++, InsertInto(cols, (tb[StringColBox(1)] &amp;lt;&amp;lt; get)[sr[c]]));
							dt &amp;lt;&amp;lt; selectColumns(cols);
							);
						);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Feb 2021 11:20:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Process-screener-column-selection-in-data-table/m-p/361292#M61087</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2021-02-22T11:20:01Z</dc:date>
    </item>
  </channel>
</rss>

