<?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 Populate the manage spec limit table from another table through JMP in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Populate-the-manage-spec-limit-table-from-another-table-through/m-p/460010#M70492</link>
    <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;I was wondering if someone could help me with the JSL to populate the manage spec limit (MSL) table by loading the values from another table.&amp;nbsp; The provided script in the sample library only causes the MSL window to pop up, I then have to select the reference table and save to column properties manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any ideas!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 18:10:29 GMT</pubDate>
    <dc:creator>shampton82</dc:creator>
    <dc:date>2023-06-09T18:10:29Z</dc:date>
    <item>
      <title>Populate the manage spec limit table from another table through JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Populate-the-manage-spec-limit-table-from-another-table-through/m-p/460010#M70492</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;I was wondering if someone could help me with the JSL to populate the manage spec limit (MSL) table by loading the values from another table.&amp;nbsp; The provided script in the sample library only causes the MSL window to pop up, I then have to select the reference table and save to column properties manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any ideas!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:10:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Populate-the-manage-spec-limit-table-from-another-table-through/m-p/460010#M70492</guid>
      <dc:creator>shampton82</dc:creator>
      <dc:date>2023-06-09T18:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Populate the manage spec limit table from another table through JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Populate-the-manage-spec-limit-table-from-another-table-through/m-p/460033#M70493</link>
      <description>&lt;P&gt;Do you want to populate Manage Spec Limits from spec table or do you want to set spec limits from spec table to measurement table? I'm not sure if you can fill Manage Spec Limits by using Load from Limits table by scripting, but there are most likely at least two ways to fill it otherwise:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Add Spec Limits to measurement datatables columns as column properties from limits table by looping (and then open Manage Spec limits if needed)&lt;/LI&gt;
&lt;LI&gt;Manage Spec Limits platform is Table Box, so you could set values there most likely with some scripting&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I would use option 1 as it is in my opinion simpler option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This script should give some ideas how to do option 1:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
&lt;BR /&gt;//create spec table
dt_spec = New Table("Limits",
	Add Rows(2),
	New Column("Variable", Character, "Nominal", Set Values({"height", "weight"})),
	New Column("LSL", Numeric, "Continuous", Format("Best", 12), Set Values([50, 49])),
	New Column("USL", Numeric, "Continuous", Format("Best", 12), Set Values([150, 151])),
	New Column("Target", Numeric, "Continuous", Format("Best", 12), Set Values([100, 101]))
);

//Loop over spec table and look for matches in measurement table
meas_cols = dt &amp;lt;&amp;lt; Get Column Names("String");
For Each Row(dt_spec,
	If(Contains(meas_cols, :Variable),
		Eval(
			Eval Expr(
				Column(dt, :Variable) &amp;lt;&amp;lt; Add Column Properties(
					Set Property("Spec Limits", {LSL(Expr(:LSL)), USL(Expr(:USL)), Target(Expr(:Target)), Show Limits(1)})
				)
			)
		)	
	);
);

//open manage spec limits if needed
dt &amp;lt;&amp;lt; Manage Spec Limits(Y(dt_spec[0, "Variable"]));
//Close(dt_spec, no save);

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Feb 2022 20:06:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Populate-the-manage-spec-limit-table-from-another-table-through/m-p/460033#M70493</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-02-10T20:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Populate the manage spec limit table from another table through JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Populate-the-manage-spec-limit-table-from-another-table-through/m-p/460035#M70495</link>
      <description>&lt;P&gt;&amp;nbsp;Thanks for the input.&amp;nbsp; I agree if there isn't a way to script in those steps then looping through the limits table will have to be the way to go.&amp;nbsp; I was hoping I could shortcut the more complex coding and just add in some additions commands to the MSL.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 20:06:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Populate-the-manage-spec-limit-table-from-another-table-through/m-p/460035#M70495</guid>
      <dc:creator>shampton82</dc:creator>
      <dc:date>2022-02-10T20:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Populate the manage spec limit table from another table through JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Populate-the-manage-spec-limit-table-from-another-table-through/m-p/460037#M70496</link>
      <description>&lt;P&gt;You can open Load from Limits Table, but no idea how to go from there to Other and then input path to limits table&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");
obj = dt &amp;lt;&amp;lt; Manage Spec Limits(Y(dt &amp;lt;&amp;lt; Get Column Group("Processes")));
obj &amp;lt;&amp;lt; Load from Limits Table();
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Feb 2022 20:12:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Populate-the-manage-spec-limit-table-from-another-table-through/m-p/460037#M70496</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-02-10T20:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Populate the manage spec limit table from another table through JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Populate-the-manage-spec-limit-table-from-another-table-through/m-p/460039#M70497</link>
      <description>&lt;P&gt;Here is a simple script that will create a limits table that can be used for Manage Spec Limits&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
// point to your table that has limits 
dt = Data Table( "your table name" );
// Create the new limits table
dtLimit = New Table( "Limits",
	New Column( "Variable", character ),
	New Column( "LSL" ),
	New Column( "USL" ),
	New Column( "Target" )
);

// Read through the original table and move to the new limits table
For( i = 1, i &amp;lt;= N Rows( dt ), i++,
	dtLimit &amp;lt;&amp;lt; add rows( 1 );
	dtLimit:Variable[i] = dt:your column name that has the parameter name[i];
	dtLimit:LSL[i] = dt:your column name that has the LSL value[i];
	dtLimit:USL[i] = dt:your column name that has the USL value[i];
	dtLimit:Target[i] = dt:your column name that has the Target value[i];
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Feb 2022 20:22:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Populate-the-manage-spec-limit-table-from-another-table-through/m-p/460039#M70497</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-02-10T20:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Populate the manage spec limit table from another table through JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Populate-the-manage-spec-limit-table-from-another-table-through/m-p/460633#M70571</link>
      <description>&lt;P&gt;It looks like the original request was to use jsl to load a limits table into the Manage Spec Limits platform and then save to column properties.&amp;nbsp; Below is JSL that will do that.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtLimits=New Table( "Limits",
	Add Rows( 4 ),
	New Column( "Variable",
		Character,
		"Nominal",
		Set Values( {"OZONE", "CO", "SO2", "NO"} )
	),
	New Column( "_LSL",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [0.075, 5, 0.01, 0.01] )
	),
	New Column( "_USL",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [0.25, 12, 0.09, 0.04] )
	),
	New Column( "_Target",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [0.15, 7, 0.04, 0.025] )
	),
	New Column( "Show Limits",
		Numeric,
		"Nominal",
		Format( "Best", 12 ),
		Set Values( [1, 1, 1, 1] )
	),
	New Column( "Importance", Numeric, "Nominal", Format( "Best", 12), Set Values([2,4,1,3])),
	New Column( "Units",
		Character,
		"Nominal",
		Set Values( {"lbs", "mi", "in", "ft"} )
	),
	New Column( "Centerline",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [0.15, 7, 0.05, 0.025] )
	),
	New Column( "Sigma",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [.05, 4, 0.03, 0.01] )
	),
	New Column( "Measurement Sigma",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [1, 5, .5, .8] )
	),
	New Column( "Lower Tolerance",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [0.075, 5, 0.01, 0.02] )
	),
	New Column( "Upper Tolerance",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [0.25, 12, 0.1, 0.05] )
	),
	New Column( "Reference",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [0.15, 7, 0.04, 0.025] )
	),
	New Column( "Resolution",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [0.05, 1, 0.08, 0.9] )
	),
	New Column( "Historical Mean",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [0.15, 7, 0.04, 0.025] )
	),
	New Column( "Historical Process Sigma",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [1, 2, 3, 4] )
	)	
);
dt = Open( "$SAMPLE_DATA/Cities.jmp" );
obj=dt&amp;lt;&amp;lt;Manage Spec Limits( Y( :OZONE, :CO, :SO2, :NO ), Load from Limits Table(dtLimits) );&lt;BR /&gt;obj &amp;lt;&amp;lt; Save to Column Properties;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Feb 2022 12:14:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Populate-the-manage-spec-limit-table-from-another-table-through/m-p/460633#M70571</guid>
      <dc:creator>tonya_mauldin</dc:creator>
      <dc:date>2022-02-14T12:14:58Z</dc:date>
    </item>
  </channel>
</rss>

