<?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: assigned spec limits from limits column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/assigned-spec-limits-from-limits-column/m-p/52452#M29694</link>
    <description>&lt;P&gt;Gladly! Ever had Ardbeg Uigeadail? Are you coming to Discovery 2018 in Cary?&lt;/P&gt;</description>
    <pubDate>Thu, 01 Mar 2018 16:34:28 GMT</pubDate>
    <dc:creator>markschahl</dc:creator>
    <dc:date>2018-03-01T16:34:28Z</dc:date>
    <item>
      <title>assigned spec limits from limits column</title>
      <link>https://community.jmp.com/t5/Discussions/assigned-spec-limits-from-limits-column/m-p/50361#M28647</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I have a data table with the following columns, how can I assign&amp;nbsp;the limits to the value column as property?&lt;BR /&gt;meaning when&amp;nbsp;I plot value by date ill see those limits automatically&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="fdg.png" style="width: 570px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/9101i613EC38A1226F43B/image-size/large?v=v2&amp;amp;px=999" role="button" title="fdg.png" alt="fdg.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I tried&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:value &amp;lt;&amp;lt; set property(
"spec limits",
{LSL( : LCL ) , USL( : UCL ), Target( : Target ), Show Limits( 1 )}
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 18:44:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/assigned-spec-limits-from-limits-column/m-p/50361#M28647</guid>
      <dc:creator>AdamChoen</dc:creator>
      <dc:date>2018-01-29T18:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: assigned spec limits from limits column</title>
      <link>https://community.jmp.com/t5/Discussions/assigned-spec-limits-from-limits-column/m-p/50369#M28653</link>
      <description>&lt;P&gt;Your example data table does not contain any columns named LSL or USL.&amp;nbsp; Assuming they do exist, but are just missing from the display your code remains with a couple of problems.&amp;nbsp; First, you are attempting to insert values into a list structure.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;{LSL( : LSL ) , USL( : USL  ), Target( : Target ), Show Limits( 1 )}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Because this is a list, it will not parse and evaluate itself.&lt;/P&gt;
&lt;P&gt;The second item, is that, Spec Limits is a column property, and therefore, only 1 set of Spec Limits can be set for your column :Value.&amp;nbsp; If you have a columns named :LSL, :Target and :USL, you will need to specify which row in the data table contains those limits.&amp;nbsp; Below is one method that can be used to add the Spec Limits.&amp;nbsp; In the code, I am assuming there are columns of :USL, :Target and :USL, and that row 5 contains the values you want to use.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Eval(
	Substitute(
			Expr(
				:value &amp;lt;&amp;lt; set property(
					"spec limits",
					{LSL( __LSL__ ), USL( __USL__ ), Target( __Target__ ), Show Limits( 1 )}
				)
			),
		Expr( __LSL__ ), :LSL[5],
		Expr( __USL__ ), :USL[5],
		Expr( __Target__ ), :Target[5]
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Jan 2018 14:52:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/assigned-spec-limits-from-limits-column/m-p/50369#M28653</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-01-29T14:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: assigned spec limits from limits column</title>
      <link>https://community.jmp.com/t5/Discussions/assigned-spec-limits-from-limits-column/m-p/52171#M29570</link>
      <description>Hi,&lt;BR /&gt;Thanks for the solution for the original question.&lt;BR /&gt;I have another question regarding the same issue/example.&lt;BR /&gt;Can I create a smart column property or trend chart property so that when I create a trend chart using jsl the limits will be included.&lt;BR /&gt;I think there need to be something because I have value and limits in every row.</description>
      <pubDate>Tue, 27 Feb 2018 16:25:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/assigned-spec-limits-from-limits-column/m-p/52171#M29570</guid>
      <dc:creator>AdamChoen</dc:creator>
      <dc:date>2018-02-27T16:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: assigned spec limits from limits column</title>
      <link>https://community.jmp.com/t5/Discussions/assigned-spec-limits-from-limits-column/m-p/52251#M29571</link>
      <description>Show Limits(1) - I was searching around the scripting guide yesterday on how do this to a bunch of columns. Thanks!</description>
      <pubDate>Tue, 27 Feb 2018 16:46:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/assigned-spec-limits-from-limits-column/m-p/52251#M29571</guid>
      <dc:creator>markschahl</dc:creator>
      <dc:date>2018-02-27T16:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: assigned spec limits from limits column</title>
      <link>https://community.jmp.com/t5/Discussions/assigned-spec-limits-from-limits-column/m-p/52265#M29580</link>
      <description>&lt;P&gt;Not working for me,&lt;BR /&gt;Did you mean as in the example?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;biv=Bivariate(
	Y( :VALUE ),
	X( :DATE ),
	By(
		:TEST
	)
);
biv &amp;lt;&amp;lt; Show Limits(1);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Feb 2018 20:54:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/assigned-spec-limits-from-limits-column/m-p/52265#M29580</guid>
      <dc:creator>AdamChoen</dc:creator>
      <dc:date>2018-02-27T20:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: assigned spec limits from limits column</title>
      <link>https://community.jmp.com/t5/Discussions/assigned-spec-limits-from-limits-column/m-p/52277#M29592</link>
      <description>&lt;P&gt;Adam:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My application was to be able to toggle the 'Show as graph reference lines' for Spec Limits. After doing Process Capability, loading spec limits from a table, then saving them to columm property I noticed that none of the columns had the&amp;nbsp;&lt;SPAN&gt;'Show as graph reference lines' checked. For 55 columns I did not want to do this manually (but I did - I searched the documentation but could find out how to do this). Now I have JSL that can do it. Change the (1) to a (0) to toggle. You want to see the Spec Limit lines for some plots, but not others.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Names Default To Here( 1 );&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;dt = Current Data Table();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;mycols = dt &amp;lt;&amp;lt; Get Column Names( string );&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;For( i = 2, i &amp;lt;= N Items( mycols ), i++,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Column( i ) &amp;lt;&amp;lt; Set Property( "Spec Limits", {Show Limits(1)} );&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;So, this JSL will toggle the Show Limits(), but it will wipe out the LSL(), Target(), USL() assigned to the column.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#FF0000"&gt;Does anyone out there have a way to only toggle the Show Limits()?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 21:49:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/assigned-spec-limits-from-limits-column/m-p/52277#M29592</guid>
      <dc:creator>markschahl</dc:creator>
      <dc:date>2018-02-27T21:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: assigned spec limits from limits column</title>
      <link>https://community.jmp.com/t5/Discussions/assigned-spec-limits-from-limits-column/m-p/52362#M29644</link>
      <description>&lt;P&gt;Here is a simple script that will set the Show Limits without deleting the already set limits&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\Semiconductor Capability.jmp" );

mycols = dt &amp;lt;&amp;lt; Get Column Names( numeric, string );

For( i = 1, i &amp;lt;= N Items( mycols ), i++,
	spec = Column( dt, mycols[i] ) &amp;lt;&amp;lt; Get Property( "Spec Limits" );
	If( Is Empty( spec ) == 0,
		LSL = Try( spec["LSL"], . );
		USL = Try( spec["USL"], . );
		Target = Try( spec["Target"], . );
		Eval(
			Substitute(
					Expr(
						Column( dt, mycols[i] ) &amp;lt;&amp;lt;
						Set Property(
							"Spec Limits",
							{LSL( __LSL__ ), USL( __USL__ ),
							Target( __Target__ ), Show Limits( 1 )}
						),
					),
				Expr( __LSL__ ), LSL,
				Expr( __USL__ ), USL,
				Expr( __Target__ ), Target
			)
		);
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Feb 2018 19:15:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/assigned-spec-limits-from-limits-column/m-p/52362#M29644</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-02-28T19:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: assigned spec limits from limits column</title>
      <link>https://community.jmp.com/t5/Discussions/assigned-spec-limits-from-limits-column/m-p/52367#M29649</link>
      <description>&lt;P&gt;Jim:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks! I now owe you two beers :).&lt;/P&gt;&lt;P&gt;One of these days I will have to confromt my fear of Eval / Expr / Substitute&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 19:33:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/assigned-spec-limits-from-limits-column/m-p/52367#M29649</guid>
      <dc:creator>markschahl</dc:creator>
      <dc:date>2018-02-28T19:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: assigned spec limits from limits column</title>
      <link>https://community.jmp.com/t5/Discussions/assigned-spec-limits-from-limits-column/m-p/52374#M29653</link>
      <description>&lt;P&gt;1 Single Malt Scotch == 2 Beers&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 19:50:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/assigned-spec-limits-from-limits-column/m-p/52374#M29653</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-02-28T19:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: assigned spec limits from limits column</title>
      <link>https://community.jmp.com/t5/Discussions/assigned-spec-limits-from-limits-column/m-p/52452#M29694</link>
      <description>&lt;P&gt;Gladly! Ever had Ardbeg Uigeadail? Are you coming to Discovery 2018 in Cary?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 16:34:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/assigned-spec-limits-from-limits-column/m-p/52452#M29694</guid>
      <dc:creator>markschahl</dc:creator>
      <dc:date>2018-03-01T16:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: assigned spec limits from limits column</title>
      <link>https://community.jmp.com/t5/Discussions/assigned-spec-limits-from-limits-column/m-p/221891#M44277</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am somewhat new to JMP. Where would I put this code? The following is the script in the Source.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open(
	"Data.xlsx",
	Worksheets( {"Sheet2"} ),
	Use for all sheets( 1 ),
	Concatenate Worksheets( 1 ),
	Create Concatenation Column( 1 ),
	Worksheet Settings(
		1,
		Has Column Headers( 1 ),
		Number of Rows in Headers( 1 ),
		Headers Start on Row( 1 ),
		Data Starts on Row( 2 ),
		Data Starts on Column( 1 ),
		Data Ends on Row( 0 ),
		Data Ends on Column( 0 ),
		Replicated Spanned Rows( 1 ),
		Replicated Spanned Headers( 0 ),
		Suppress Hidden Rows( 1 ),
		Suppress Hidden Columns( 1 ),
		Suppress Empty Columns( 1 ),
		Treat as Hierarchy( 0 ),
		Multiple Series Stack( 0 ),
		Import Cell Colors( 0 ),
		Limit Column Detect( 0 ),
		Column Separator String( "-" ),
		Eval(
			Substitute(
					Expr(
						:value &amp;lt;&amp;lt; set property(
							"spec limits",
							{LSL( __LSL__ ), USL( __USL__ ), ., Show Limits( 1 )}
						)
					),
				Expr( __LSL__ ), :LSL[10],
				Expr( __USL__ ), :USL[7],

			)
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This isn't working for me. Trying to debug the script causing a break, no matter where I put a breakpoint. Any help would be appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 12:00:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/assigned-spec-limits-from-limits-column/m-p/221891#M44277</guid>
      <dc:creator>jeff_day</dc:creator>
      <dc:date>2019-08-20T12:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: assigned spec limits from limits column</title>
      <link>https://community.jmp.com/t5/Discussions/assigned-spec-limits-from-limits-column/m-p/221915#M44280</link>
      <description>&lt;P&gt;The information from this track is assuminging 2 data tables are open in your JMP session.&amp;nbsp; A data table containing the measurement data, and a second table containing Spec LImits.&amp;nbsp; Your Open() function is opening an Excel file called "Data.xlsx.&amp;nbsp; Is this your measurement data or your limits data?&amp;nbsp; In either case, you can not interject into the Open() function, the JSL that modifies the Spec Limits.&amp;nbsp; Both the measurement table and the table that has the limits in it, has to be completly read in, and then the limits update code needs to be applied.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 19:07:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/assigned-spec-limits-from-limits-column/m-p/221915#M44280</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-08-15T19:07:59Z</dc:date>
    </item>
  </channel>
</rss>

