<?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 Setting limits from a specific cell to the column property in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Setting-limits-from-a-specific-cell-to-the-column-property/m-p/444069#M69195</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have som problems in getting the code below to set the limits in the column properties&amp;nbsp;&lt;/P&gt;&lt;P&gt;it set a spec limits but is is set to 0.0 and not the value in row 4 and 5 of the column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there any of you that can help&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;for(c=2, c&amp;lt;=NCol(dt), c++, Column(dt, c) &amp;lt;&amp;lt; Set Property("Spec Limits", Spec Limits(Show Limits(1))));
for(c=2, c&amp;lt;=NCol(dt), c++, Column(dt, c) &amp;lt;&amp;lt; Set Property("Spec Limits", Spec Limits(LSL(Column(dt, c)[4]))));
for(c=2, c&amp;lt;=NCol(dt), c++, Column(dt, c) &amp;lt;&amp;lt; Set Property("Spec Limits", Spec Limits(USL(Column(dt, c)[5]))));&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 09 Jun 2023 18:07:08 GMT</pubDate>
    <dc:creator>Claus_Jensen</dc:creator>
    <dc:date>2023-06-09T18:07:08Z</dc:date>
    <item>
      <title>Setting limits from a specific cell to the column property</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-limits-from-a-specific-cell-to-the-column-property/m-p/444069#M69195</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have som problems in getting the code below to set the limits in the column properties&amp;nbsp;&lt;/P&gt;&lt;P&gt;it set a spec limits but is is set to 0.0 and not the value in row 4 and 5 of the column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there any of you that can help&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;for(c=2, c&amp;lt;=NCol(dt), c++, Column(dt, c) &amp;lt;&amp;lt; Set Property("Spec Limits", Spec Limits(Show Limits(1))));
for(c=2, c&amp;lt;=NCol(dt), c++, Column(dt, c) &amp;lt;&amp;lt; Set Property("Spec Limits", Spec Limits(LSL(Column(dt, c)[4]))));
for(c=2, c&amp;lt;=NCol(dt), c++, Column(dt, c) &amp;lt;&amp;lt; Set Property("Spec Limits", Spec Limits(USL(Column(dt, c)[5]))));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:07:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-limits-from-a-specific-cell-to-the-column-property/m-p/444069#M69195</guid>
      <dc:creator>Claus_Jensen</dc:creator>
      <dc:date>2023-06-09T18:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Setting limits from a specific cell to the column property</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-limits-from-a-specific-cell-to-the-column-property/m-p/444127#M69199</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/34495"&gt;@Claus_Jensen&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; A lot of the time, when you set the property Spec Limits, you need to do it in a special kind of way. You might consider reading over the post &lt;A href="https://community.jmp.com/t5/Discussions/Issues-with-recognizing-an-argument-in-the-script/m-p/441277#M68964" target="_self"&gt;here&lt;/A&gt;,&amp;nbsp;or &lt;A href="https://community.jmp.com/t5/Discussions/JSL-Spec-limits-and-reference-lines/td-p/34772" target="_self"&gt;here&lt;/A&gt;, where the original first link was about something else, but they too wanted to assign spec limits to a column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Often, you have to do it like the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;//define your spec limits
_LSL_ = 0;
_USL_ = 100;
_Target_ = 20;

//assign the spec limits to the column of interest
Eval( Eval Expr( Column( dt, C ) &amp;lt;&amp;lt; Set Property( "Spec Limits", {LSL( Expr( _LSL_ ) ), USL( Expr( _USL_ ) ), Target( Expr( _Target_ ) )} ) ) );&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the above example, the variables for the spec limits are _LSL_ and so forth, and must be evaluated as Expr(_LSL_) in the &amp;lt;&amp;lt;Set Property() command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you don't want to define your spec limits in the JSL code, but instead have them as a column, say :"LSL"n, where the first element is the value, then :"LSL"n[1]=0 (or whatever). You might also look into "managing spec limits" with JMP &lt;A href="https://community.jmp.com/t5/JMPer-Cable/Manipulating-and-managing-your-specification-limits/ba-p/48718" target="_self"&gt;here&lt;/A&gt;. I use this process a lot, and you can have it all scripted up. It makes it much easier to build a data table where each row is a property of your item/product, this is "Column 1", then you have columns _LSL, _Target, and _USL, and as long as the rows in Column 1 match with the column names of your table of products, then you can easily assign spec limits to the columns all by scripting it. For example, your spec table might look like the one below:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Column 1&lt;/TD&gt;&lt;TD&gt;_LSL&lt;/TD&gt;&lt;TD&gt;_Target&lt;/TD&gt;&lt;TD&gt;_USL&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Weight&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Height&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Hardness&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, your table of each of your products/items that you measure might look like this:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Lot Number&lt;/TD&gt;&lt;TD&gt;Weight&lt;/TD&gt;&lt;TD&gt;Height&lt;/TD&gt;&lt;TD&gt;Hardness&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;010&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;37&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;020&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;030&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, by using the Manage Spec Limits, you can easily assign the specs from the spec data table to the product/item data table. For me, this helps when I generate large data table for our products and want to automate the process after reading in data files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Anyway, by using the example at the top, where you define the spec limits and use the Eval(Eval Expr(Expr())) will definitely get you what you need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 13:44:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-limits-from-a-specific-cell-to-the-column-property/m-p/444127#M69199</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2021-12-10T13:44:21Z</dc:date>
    </item>
  </channel>
</rss>

