<?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: Script For Adding Spec Limits to a column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Script-For-Adding-Spec-Limits-to-a-column/m-p/526003#M75034</link>
    <description>&lt;P&gt;Also, is there a way to rename to either LSL/USL to display some other name?&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jul 2022 20:09:23 GMT</pubDate>
    <dc:creator>deveshchugh</dc:creator>
    <dc:date>2022-07-25T20:09:23Z</dc:date>
    <item>
      <title>Script For Adding Spec Limits to a column</title>
      <link>https://community.jmp.com/t5/Discussions/Script-For-Adding-Spec-Limits-to-a-column/m-p/190532#M40924</link>
      <description>&lt;P&gt;I am new to scripting&lt;/P&gt;&lt;P&gt;I am sure this is very straightforward, but I am looking to create a script that adds an upper spec limit to a column (No USL or Target required)&lt;/P&gt;&lt;P&gt;Many thanks for any guidance&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 07:10:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-For-Adding-Spec-Limits-to-a-column/m-p/190532#M40924</guid>
      <dc:creator>ar2</dc:creator>
      <dc:date>2019-04-01T07:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Script For Adding Spec Limits to a column</title>
      <link>https://community.jmp.com/t5/Discussions/Script-For-Adding-Spec-Limits-to-a-column/m-p/190559#M40926</link>
      <description>&lt;P&gt;Here's one way:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

// ******************************************************************************************
// Given a column reference, sets spec liomits property
// ******************************************************************************************
SetSpecLimits = function({c, lsl, usl, tar},
     cmd = Expr(c &amp;lt;&amp;lt; SetProperty("Spec Limits", {LSL(expr(lsl)), USL(expr(usl)), Target(expr(tar))}));
     eval(evalexpr(cmd));
);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
SetSpecLimits(Column(dt, "height"), 60, ., .);		// Set LSL only
SetSpecLimits(Column(dt, "weight"), 80, 120, 100);	// Set all three values&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Use 'Help &amp;gt; Scripting INdex' and 'Help &amp;gt; Books &amp;gt; Scripting Guide' to help figure out how it works.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 09:45:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-For-Adding-Spec-Limits-to-a-column/m-p/190559#M40926</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2019-04-01T09:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Script For Adding Spec Limits to a column</title>
      <link>https://community.jmp.com/t5/Discussions/Script-For-Adding-Spec-Limits-to-a-column/m-p/190560#M40927</link>
      <description>&lt;P&gt;Thanks Ian...I'll give it a go&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 09:48:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-For-Adding-Spec-Limits-to-a-column/m-p/190560#M40927</guid>
      <dc:creator>ar2</dc:creator>
      <dc:date>2019-04-01T09:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Script For Adding Spec Limits to a column</title>
      <link>https://community.jmp.com/t5/Discussions/Script-For-Adding-Spec-Limits-to-a-column/m-p/526002#M75033</link>
      <description>&lt;P&gt;Hi Ian,&lt;/P&gt;&lt;P&gt;Is there a way to add LSL/USL based on grouping by a second column. For ex: have different LSL/USL based on whether student is boy or girl. So, when we plot weight age/weight by either boy or girl, the corresponding limits should be displayed on chart (LSL/USL only). if we plot the boy and girl height in&amp;nbsp; one plot, the limit label could add _"groupby name" to the limit (ex: LSL_boy, USL_boy, LSL_girl, USL_girl).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Devesh&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 20:06:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-For-Adding-Spec-Limits-to-a-column/m-p/526002#M75033</guid>
      <dc:creator>deveshchugh</dc:creator>
      <dc:date>2022-07-25T20:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Script For Adding Spec Limits to a column</title>
      <link>https://community.jmp.com/t5/Discussions/Script-For-Adding-Spec-Limits-to-a-column/m-p/526003#M75034</link>
      <description>&lt;P&gt;Also, is there a way to rename to either LSL/USL to display some other name?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 20:09:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-For-Adding-Spec-Limits-to-a-column/m-p/526003#M75034</guid>
      <dc:creator>deveshchugh</dc:creator>
      <dc:date>2022-07-25T20:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Script For Adding Spec Limits to a column</title>
      <link>https://community.jmp.com/t5/Discussions/Script-For-Adding-Spec-Limits-to-a-column/m-p/526054#M75035</link>
      <description>&lt;P&gt;You can not change the LSL and USL labels.&amp;nbsp; You can load the limits as Response Limits, and it will label them RSL and LSL.&amp;nbsp; Finally, you can add you own Reference Lines which will allow you to name them whatever you want.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 21:20:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-For-Adding-Spec-Limits-to-a-column/m-p/526054#M75035</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-07-25T21:20:23Z</dc:date>
    </item>
  </channel>
</rss>

