<?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: Creating a column checking all the spec limits saved as colum properties in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Creating-a-column-checking-all-the-spec-limits-saved-as-colum/m-p/819037#M99725</link>
    <description>&lt;P&gt;JSL can do this. These posts have some ideas about what you could do&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;LI-MESSAGE title="How to get the row number of colored cells in a column and assign it a tag (say &amp;amp;quot;1&amp;amp;quot;) in a newly created column?" uid="749264" url="https://community.jmp.com/t5/Discussions/How-to-get-the-row-number-of-colored-cells-in-a-column-and/m-p/749264#U749264" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;and &lt;LI-MESSAGE title="Scripters Club Recordings: Tips and Tricks" uid="817168" url="https://community.jmp.com/t5/JMP-Scripters-Club-Discussions/Scripters-Club-Recordings-Tips-and-Tricks/m-p/817168#U817168" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;. And there are also other methods.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Nov 2024 17:47:47 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-11-25T17:47:47Z</dc:date>
    <item>
      <title>Creating a column checking all the spec limits saved as colum properties</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-column-checking-all-the-spec-limits-saved-as-colum/m-p/819027#M99724</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am checking several parameters for some products, e.g. length and width. Each parameter is a column with spec limits as column property. Each row is the product. How do I automatically created a column called "InSpec" that tells me whether the product (row) is in or out of spec for all the parameters (columns) with assigned spec limits WITHOUT having to write an IF statement as a formula for the "InSpec" column. This is because I have tons of spec parameters to check (saved in a spec table). I already used a for loop to assign the spec limits as column properties, so I figured there might be a way to check for all the specs as once.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 17:29:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-column-checking-all-the-spec-limits-saved-as-colum/m-p/819027#M99724</guid>
      <dc:creator>ValeriaJMP</dc:creator>
      <dc:date>2024-11-25T17:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a column checking all the spec limits saved as colum properties</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-column-checking-all-the-spec-limits-saved-as-colum/m-p/819037#M99725</link>
      <description>&lt;P&gt;JSL can do this. These posts have some ideas about what you could do&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;LI-MESSAGE title="How to get the row number of colored cells in a column and assign it a tag (say &amp;amp;quot;1&amp;amp;quot;) in a newly created column?" uid="749264" url="https://community.jmp.com/t5/Discussions/How-to-get-the-row-number-of-colored-cells-in-a-column-and/m-p/749264#U749264" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;and &lt;LI-MESSAGE title="Scripters Club Recordings: Tips and Tricks" uid="817168" url="https://community.jmp.com/t5/JMP-Scripters-Club-Discussions/Scripters-Club-Recordings-Tips-and-Tricks/m-p/817168#U817168" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;. And there are also other methods.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 17:47:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-column-checking-all-the-spec-limits-saved-as-colum/m-p/819037#M99725</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-11-25T17:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a column checking all the spec limits saved as colum properties</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-column-checking-all-the-spec-limits-saved-as-colum/m-p/819051#M99726</link>
      <description>&lt;P&gt;Under the line:&lt;BR /&gt;Please vote here&amp;nbsp;&lt;LI-MESSAGE title="🙏 is in spec (value)" uid="774331" url="https://community.jmp.com/t5/JMP-Wish-List/is-in-spec-value/m-p/774331#U774331" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 18:22:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-column-checking-all-the-spec-limits-saved-as-colum/m-p/819051#M99726</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-11-25T18:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a column checking all the spec limits saved as colum properties</title>
      <link>https://community.jmp.com/t5/Discussions/Creating-a-column-checking-all-the-spec-limits-saved-as-colum/m-p/819168#M99731</link>
      <description>&lt;P&gt;Here is a script I wrote that cycles through all columns and if the column has spec limits, it creates a new column and sets all passing rows to 1 and all failing columns to 0.&amp;nbsp; It also colors the cells for the non passing values to red.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1732589473412.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/70607i7006133C9A637D12/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1732589473412.png" alt="txnelson_0-1732589473412.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = 
// Open Data Table: semiconductor capability.jmp
// → Data Table( "semiconductor capability" )
Open( "$SAMPLE_DATA/semiconductor capability.jmp" );

colNames = dt &amp;lt;&amp;lt; get column names( string, numeric );

For Each( {col}, colNames,
	specs = {};
	specs = Try( Column( dt, col ) &amp;lt;&amp;lt; get property( "spec limits" ), {} );
	If( specs != Empty(),
		dt &amp;lt;&amp;lt; New Column( Column( dt, col ) &amp;lt;&amp;lt; get name || " in Spec?", set each value( 1 ) );
		lsl = specs["LSL"];
		usl = specs["USL"];

		inSpec = dt &amp;lt;&amp;lt; get rows where( !(As Column( dt, col ) &amp;gt;= lsl &amp;amp; As Column( dt, col ) &amp;lt;= usl ));
		If( Length( inSpec ) &amp;gt; 0,
			Column( Column( dt, col ) &amp;lt;&amp;lt; get name || " in Spec?" )[inSpec] = 0;
			Column( col ) &amp;lt;&amp;lt; color cells( "Red", inSpec );
		);
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Nov 2024 02:51:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Creating-a-column-checking-all-the-spec-limits-saved-as-colum/m-p/819168#M99731</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-11-26T02:51:40Z</dc:date>
    </item>
  </channel>
</rss>

