<?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: Process Screening within JSL class in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Process-Screening-within-JSL-class/m-p/721546#M90360</link>
    <description>&lt;P&gt;Hello Brian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for not being more specific, the above script runs but the error appears pressing the SelectedRows button.&lt;/P&gt;&lt;P&gt;I am running this on JMP 17.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2024 11:47:23 GMT</pubDate>
    <dc:creator>JmpNoobScripter</dc:creator>
    <dc:date>2024-02-02T11:47:23Z</dc:date>
    <item>
      <title>Process Screening within JSL class</title>
      <link>https://community.jmp.com/t5/Discussions/Process-Screening-within-JSL-class/m-p/721327#M90337</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;Recently I got into jmp scripting, and am trying my best to learn it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal of the example below is to show the value of the "Column" for the selected rows.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Cols = {"NPN1", "PNP1", "PNP2", "NPN2", "PNP3", "IVP1", "PNP4", "NPN3", "IVP2", "NPN4", "SIT1", "INM1", "INM2",
"VPM1", "VPM2"};
dt = Open( "$SAMPLE_DATA/Semiconductor Capability.jmp" );

Define Class(
	"Test_Class",
	_init_ = Method( {dt, Cols},
		my_dt = dt;
		my_cols = Cols;
		
		Make_Win();
	);
	
	Make_Win = Method( {}, 
		New Window( "ProcessScreening", 
			Vlist_box = V List Box(
				PS,
				MyButton = Button Box( "SelectedRows", SendRows ),
			),
		),
	);

	PS = dt &amp;lt;&amp;lt; Process Screening(
		Y( Eval(my_cols)),
		Control Chart Type( "Indiv and MR" ),
		Minimum Process Length( 1 ),
		Use Medians instead of Means( 1 ),
		Show tests( 0 ),
		Test 1( 0 ),
		Cp( 1 ),
		Spec Limits( 1 ), 
	);&lt;BR /&gt;
	SendRows = Expr(
		print_cols = Report( PS )[Table Box( 1 )][String Col Box( 1 )] &amp;lt;&amp;lt; getselectedrows();
		Print( Report( PS )[Table Box( 1 )][String Col Box( 1 )][print_cols] );
	);
);&lt;BR /&gt;
my_obj = New Object( Test_Class( dt, Cols ) );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Error code:&lt;/P&gt;&lt;PRE&gt;Send Expects Scriptable Object in access or evaluation of 'Send' , my_dt &amp;lt;&amp;lt;  /*###*/Process Screening(
Y( Eval( my_cols ) ),
Control Chart Type( "Indiv and MR" ),
Minimum Process Length( 1 ),
Use Medians instead of Means( 1 ),
Show tests( 0 ),
Test 1( 0 ),
Cp( 1 ),
Spec Limits( 1 )
) /*###*/
object not subscriptable in access or evaluation of 'Report(PS)[ /*###*/Table Box(1)]' , Report( PS )[/*###*/Table &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use the script outside a class and it seems to work, do you have any clue of what is wrong with the above implementation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 16:28:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Process-Screening-within-JSL-class/m-p/721327#M90337</guid>
      <dc:creator>JmpNoobScripter</dc:creator>
      <dc:date>2024-02-01T16:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Process Screening within JSL class</title>
      <link>https://community.jmp.com/t5/Discussions/Process-Screening-within-JSL-class/m-p/721407#M90347</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;You don't mention what version of JMP you are using.&amp;nbsp; This worked fine for me with JMP 17. Do you have the following at the top of your script?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P class="p1"&gt;names default to here&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;1&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;);&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;If you have several scripts running, it can make a difference.&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;Brian Corcoran&lt;BR /&gt;JMP Development&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 19:06:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Process-Screening-within-JSL-class/m-p/721407#M90347</guid>
      <dc:creator>briancorcoran</dc:creator>
      <dc:date>2024-02-01T19:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Process Screening within JSL class</title>
      <link>https://community.jmp.com/t5/Discussions/Process-Screening-within-JSL-class/m-p/721410#M90349</link>
      <description>&lt;P&gt;Do you have some specific reason for building this with classes? If you are just starting out with JMP scripting I would say staying away from classes might be a good idea.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 19:48:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Process-Screening-within-JSL-class/m-p/721410#M90349</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-02-01T19:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Process Screening within JSL class</title>
      <link>https://community.jmp.com/t5/Discussions/Process-Screening-within-JSL-class/m-p/721546#M90360</link>
      <description>&lt;P&gt;Hello Brian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for not being more specific, the above script runs but the error appears pressing the SelectedRows button.&lt;/P&gt;&lt;P&gt;I am running this on JMP 17.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 11:47:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Process-Screening-within-JSL-class/m-p/721546#M90360</guid>
      <dc:creator>JmpNoobScripter</dc:creator>
      <dc:date>2024-02-02T11:47:23Z</dc:date>
    </item>
  </channel>
</rss>

