<?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 How to dynamically update process screening or other objects. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-dynamically-update-process-screening-or-other-objects/m-p/723216#M90535</link>
    <description>&lt;P&gt;Hello again JMP community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for taking your time and answer my previous question. The code that I run below (JMP pro 17.2) doesn't seem to work as intended. My goal is after I press the&amp;nbsp;&lt;STRONG&gt;Redo&amp;nbsp;&lt;/STRONG&gt;button, the Process Screening changes from grouping by "lot_id" to grouping by "wafer".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess that once I declare the PS variable it keeps all the initial settings and it is not possible to dynammically update it as I could not find any "&amp;lt;&amp;lt; " command that would update the Grouping variable. Is there a simple solution for this example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Cols = {"NPN1", "PNP1", "PNP2", "NPN2"};
GR = "lot_id";
dt = Open( "$SAMPLE_DATA/Semiconductor Capability.jmp" );

PLAT = Platform(
	dt,
	PS = Process Screening(
		Y( Eval( Cols ) ),
		Grouping( Eval( GR ) ),
		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 ), 
	), 
);

Redo= Expr(
			GR = "wafer";
			
			NW &amp;lt;&amp;lt; Close Window;
			PS &amp;lt;&amp;lt; Redo Analysis;
			Make_Win();
);

Make_Win = Expr(
	NW = New Window( "ProcessScreening",
		Vlist_box = V List Box( 
		PLAT, 
		BB = Button Box( "Redo", Redo ),
		),
	),
);

Make_Win();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;NJS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Feb 2024 12:50:26 GMT</pubDate>
    <dc:creator>JmpNoobScripter</dc:creator>
    <dc:date>2024-02-09T12:50:26Z</dc:date>
    <item>
      <title>How to dynamically update process screening or other objects.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-dynamically-update-process-screening-or-other-objects/m-p/723216#M90535</link>
      <description>&lt;P&gt;Hello again JMP community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for taking your time and answer my previous question. The code that I run below (JMP pro 17.2) doesn't seem to work as intended. My goal is after I press the&amp;nbsp;&lt;STRONG&gt;Redo&amp;nbsp;&lt;/STRONG&gt;button, the Process Screening changes from grouping by "lot_id" to grouping by "wafer".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess that once I declare the PS variable it keeps all the initial settings and it is not possible to dynammically update it as I could not find any "&amp;lt;&amp;lt; " command that would update the Grouping variable. Is there a simple solution for this example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Cols = {"NPN1", "PNP1", "PNP2", "NPN2"};
GR = "lot_id";
dt = Open( "$SAMPLE_DATA/Semiconductor Capability.jmp" );

PLAT = Platform(
	dt,
	PS = Process Screening(
		Y( Eval( Cols ) ),
		Grouping( Eval( GR ) ),
		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 ), 
	), 
);

Redo= Expr(
			GR = "wafer";
			
			NW &amp;lt;&amp;lt; Close Window;
			PS &amp;lt;&amp;lt; Redo Analysis;
			Make_Win();
);

Make_Win = Expr(
	NW = New Window( "ProcessScreening",
		Vlist_box = V List Box( 
		PLAT, 
		BB = Button Box( "Redo", Redo ),
		),
	),
);

Make_Win();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;NJS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 12:50:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-dynamically-update-process-screening-or-other-objects/m-p/723216#M90535</guid>
      <dc:creator>JmpNoobScripter</dc:creator>
      <dc:date>2024-02-09T12:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically update process screening or other objects.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-dynamically-update-process-screening-or-other-objects/m-p/723232#M90537</link>
      <description>&lt;P&gt;This might give some ideas what you could do&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

Cols = {"NPN1", "PNP1", "PNP2", "NPN2"};
GR = "lot_id";

dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");

ps = Expr(dt &amp;lt;&amp;lt; Process Screening(
	Y(Eval(Cols)),
	Grouping(Eval(GR)),
	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)
));


redo_ps = Expr(
	If(GR == "lot_id",
		GR = "wafer";
	,
		GR = "lot_id";
	);
	
	ps_collector &amp;lt;&amp;lt; Delete Box();
	vlb &amp;lt;&amp;lt; Append(ps_collector = V List Box(ps));
);

nw = New Window("ProcessScreening", 
	V List Box(
		vlb = V List Box(
			ps_collector = V List Box(ps)
		),
		BB = Button Box("Redo", redo_ps);
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Feb 2024 13:02:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-dynamically-update-process-screening-or-other-objects/m-p/723232#M90537</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-02-09T13:02:19Z</dc:date>
    </item>
  </channel>
</rss>

