<?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 Set Spec Limits Using a Variable Instead of a Hard Coded Number in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Set-Spec-Limits-Using-a-Variable-Instead-of-a-Hard-Coded-Number/m-p/754322#M93650</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to automate setting spec limits for a column. It seems that this process is easily done using a hard coded value, but doesn't work when you input the spec limit as a variable. So this works:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Column(4) &amp;lt;&amp;lt; Set Property("Spec Limits", {LSL(0), USL(1), Show Limits(1)});&lt;/CODE&gt;&lt;/PRE&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="kaoticllama_0-1715703775679.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64212iFAFE99F731E3C891/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kaoticllama_0-1715703775679.png" alt="kaoticllama_0-1715703775679.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this does not:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;lowerLimit = 0;
upperLimit = 1;

Column(4) &amp;lt;&amp;lt; Set Property("Spec Limits", {LSL(lowerLimit), USL(upperLimit), Show Limits(1)});&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kaoticllama_1-1715703849054.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64213iB6FD559D63D92DA7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kaoticllama_1-1715703849054.png" alt="kaoticllama_1-1715703849054.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does anyone know a way around this? Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;kaoticllama&lt;/P&gt;</description>
    <pubDate>Tue, 14 May 2024 16:27:22 GMT</pubDate>
    <dc:creator>kaoticllama</dc:creator>
    <dc:date>2024-05-14T16:27:22Z</dc:date>
    <item>
      <title>Set Spec Limits Using a Variable Instead of a Hard Coded Number</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Spec-Limits-Using-a-Variable-Instead-of-a-Hard-Coded-Number/m-p/754322#M93650</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to automate setting spec limits for a column. It seems that this process is easily done using a hard coded value, but doesn't work when you input the spec limit as a variable. So this works:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Column(4) &amp;lt;&amp;lt; Set Property("Spec Limits", {LSL(0), USL(1), Show Limits(1)});&lt;/CODE&gt;&lt;/PRE&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="kaoticllama_0-1715703775679.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64212iFAFE99F731E3C891/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kaoticllama_0-1715703775679.png" alt="kaoticllama_0-1715703775679.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this does not:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;lowerLimit = 0;
upperLimit = 1;

Column(4) &amp;lt;&amp;lt; Set Property("Spec Limits", {LSL(lowerLimit), USL(upperLimit), Show Limits(1)});&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kaoticllama_1-1715703849054.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64213iB6FD559D63D92DA7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kaoticllama_1-1715703849054.png" alt="kaoticllama_1-1715703849054.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does anyone know a way around this? Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;kaoticllama&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 16:27:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Spec-Limits-Using-a-Variable-Instead-of-a-Hard-Coded-Number/m-p/754322#M93650</guid>
      <dc:creator>kaoticllama</dc:creator>
      <dc:date>2024-05-14T16:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set Spec Limits Using a Variable Instead of a Hard Coded Number</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Spec-Limits-Using-a-Variable-Instead-of-a-Hard-Coded-Number/m-p/754333#M93652</link>
      <description>&lt;P&gt;A JMP list can be anything, so when you specify something like upperLimit in a list, JMP just assumes you want exactly that in the list.&amp;nbsp; To tell JMP to process what is in the list, before creating the list you can do the following&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
lowerLimit = 0;
upperLimit = 1;
Eval(
	Eval Expr(
		Column( 4 ) &amp;lt;&amp;lt; Set Property(
			"Spec Limits",
			{LSL( Expr( lowerLimit ) ), USL( Expr( upperLimit ) ), Show Limits( 1 )}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 May 2024 16:42:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Spec-Limits-Using-a-Variable-Instead-of-a-Hard-Coded-Number/m-p/754333#M93652</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-05-14T16:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set Spec Limits Using a Variable Instead of a Hard Coded Number</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Spec-Limits-Using-a-Variable-Instead-of-a-Hard-Coded-Number/m-p/754729#M93697</link>
      <description>&lt;P&gt;The answer from&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;is perfect; however, when working with spec limits, scripting platforms presents a simpler and more versatile solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this example from the Scripting Index (search for "load limits" or "save to column prop") a limits table is created first. You might already have this table (or matrix) created.&lt;/P&gt;
&lt;P&gt;After the target data table is opened, then the Manage Limits platform is used to load the limits from the defined limits table, and then the limits are saved to the target data table.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&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 );&lt;BR /&gt;//First construct a table of limits for the example
dtLimits = New Table( "Cities Limits",Add Rows( 4 ),
	New Column( "Process",Character,Set Values( {"OZONE", "CO", "SO2", "NO"} )),
	New Column( "LSL", Numeric, Set Values( [0, 0, 0, 0] ) ),
	New Column( "Target",Numeric,Set Values( [0.2, 15, 0.05, 0.035] )),
	New Column( "USL",Numeric,Set Values( [0.4, 30, 0.1, 0.07] )),
	Set Label Columns( :Process ));&lt;BR /&gt;&lt;BR /&gt;//Open the target data table to act on
dt = Open( "$SAMPLE_DATA/Cities.jmp" );
&lt;BR /&gt;//Script the Mangae Limits Platform&lt;BR /&gt;obj = dt &amp;lt;&amp;lt; Manage Limits(Process Variables( :OZONE, :CO, :SO2, :NO ));
obj &amp;lt;&amp;lt; Load From Limits Table( dtLimits );&amp;nbsp;&amp;nbsp;&lt;BR /&gt;obj&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;Save&amp;nbsp;to&amp;nbsp;Column&amp;nbsp;Properties;&lt;BR /&gt;obj&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;Close&amp;nbsp;Window&lt;/CODE&gt;;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&amp;nbsp;&lt;BR /&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 15:13:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Spec-Limits-Using-a-Variable-Instead-of-a-Hard-Coded-Number/m-p/754729#M93697</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2024-05-15T15:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set Spec Limits Using a Variable Instead of a Hard Coded Number</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Spec-Limits-Using-a-Variable-Instead-of-a-Hard-Coded-Number/m-p/756031#M93807</link>
      <description>&lt;P&gt;That works wonderfully, thanks again Jim!&lt;/P&gt;</description>
      <pubDate>Sun, 19 May 2024 22:15:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Spec-Limits-Using-a-Variable-Instead-of-a-Hard-Coded-Number/m-p/756031#M93807</guid>
      <dc:creator>kaoticllama</dc:creator>
      <dc:date>2024-05-19T22:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set Spec Limits Using a Variable Instead of a Hard Coded Number</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Spec-Limits-Using-a-Variable-Instead-of-a-Hard-Coded-Number/m-p/756032#M93808</link>
      <description>&lt;P&gt;Ah I see. Thanks for the info Byron!&lt;/P&gt;</description>
      <pubDate>Sun, 19 May 2024 22:21:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Spec-Limits-Using-a-Variable-Instead-of-a-Hard-Coded-Number/m-p/756032#M93808</guid>
      <dc:creator>kaoticllama</dc:creator>
      <dc:date>2024-05-19T22:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Spec Limits Using a Variable Instead of a Hard Coded Number</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Spec-Limits-Using-a-Variable-Instead-of-a-Hard-Coded-Number/m-p/756057#M93809</link>
      <description>&lt;P&gt;Few additional notes:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Manage spec limits is much easier to use BUT it might not always work as some of the column names tend to be very strict in the spec table.&lt;/LI&gt;
&lt;LI&gt;JMP isn't able to record the button presses in Manage Spec Limits platform (enhanced log/workflow) so you will have to do little scripting here but the messages are very easy to find from scripting index under Manage Limits as they are same as those button names.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Method Jim provided will always work but it will require scripting. One great thing about learning this, is this is not the only place where this can be used.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;(I use both but more Manage Spec Limits method just for setting the spec limits).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also to show spec lines in your graphs, before sending the&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;obj &amp;lt;&amp;lt; Save to Column Properties;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;send&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;obj &amp;lt;&amp;lt; Show Limits All;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to enable the check mark&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="jthi_0-1716182805829.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64383i291D08D473860ED0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1716182805829.png" alt="jthi_0-1716182805829.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 05:31:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Spec-Limits-Using-a-Variable-Instead-of-a-Hard-Coded-Number/m-p/756057#M93809</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-05-20T05:31:41Z</dc:date>
    </item>
  </channel>
</rss>

