<?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: How to select columns with spec limits and group them (in JSL)? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-select-columns-with-spec-limits-and-group-them-in-JSL/m-p/778293#M95994</link>
    <description>&lt;P&gt;Get list of continuous columns (&amp;lt;&amp;lt; get column names(continuous, "string"), loop over this list and use &amp;lt;&amp;lt; Get Property("Spec Limits"). If here is a match -&amp;gt; add to list if not skip and continue. After you have the list you can use &amp;lt;&amp;lt; Group Columns to create your group.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Aug 2024 12:26:24 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-08-02T12:26:24Z</dc:date>
    <item>
      <title>How to select columns with spec limits and group them (in JSL)?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-columns-with-spec-limits-and-group-them-in-JSL/m-p/778282#M95993</link>
      <description>&lt;P&gt;I have got a data table with several columns with spec limits and several columns without. How to I select all the columns with spec limits, group them and call the group say "myGroup"?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 12:12:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-columns-with-spec-limits-and-group-them-in-JSL/m-p/778282#M95993</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2024-08-02T12:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to select columns with spec limits and group them (in JSL)?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-columns-with-spec-limits-and-group-them-in-JSL/m-p/778293#M95994</link>
      <description>&lt;P&gt;Get list of continuous columns (&amp;lt;&amp;lt; get column names(continuous, "string"), loop over this list and use &amp;lt;&amp;lt; Get Property("Spec Limits"). If here is a match -&amp;gt; add to list if not skip and continue. After you have the list you can use &amp;lt;&amp;lt; Group Columns to create your group.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 12:26:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-columns-with-spec-limits-and-group-them-in-JSL/m-p/778293#M95994</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-08-02T12:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to select columns with spec limits and group them (in JSL)?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-columns-with-spec-limits-and-group-them-in-JSL/m-p/778294#M95995</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/28235"&gt;@Neo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should work:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here( 1 );
dt = current data table();

colsWithSpecs = {};
for( i = 1, i &amp;lt;= n cols( dt ), i++,
	Q = column( dt, i ) &amp;lt;&amp;lt; get property( "Spec Limits" );
	if( !is empty( Q ), insert into( colsWithSpecs, column( dt, i ) &amp;lt;&amp;lt; get name ) )
);

dt &amp;lt;&amp;lt; group columns( "Columns with Spec Limits", colsWithSpecs )&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Aug 2024 12:31:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-columns-with-spec-limits-and-group-them-in-JSL/m-p/778294#M95995</guid>
      <dc:creator>scott_allen</dc:creator>
      <dc:date>2024-08-02T12:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to select columns with spec limits and group them (in JSL)?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-columns-with-spec-limits-and-group-them-in-JSL/m-p/778300#M95996</link>
      <description>&lt;P&gt;Go to&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Cols=&amp;gt;Column Manager&lt;/P&gt;
&lt;P&gt;Click on the Property Down Arrow and select Spec Limits&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1722601542950.png" style="width: 566px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66751i198DAEFFB045BAC7/image-dimensions/566x303?v=v2" width="566" height="303" role="button" title="txnelson_0-1722601542950.png" alt="txnelson_0-1722601542950.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Select all displayed columns&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Select first displayed column and then scroll down to the bottom of the list and then press the shift key and click on the last displayed column&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_1-1722601913884.png" style="width: 629px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66752i40D522046672877B/image-dimensions/629x338?v=v2" width="629" height="338" role="button" title="txnelson_1-1722601913884.png" alt="txnelson_1-1722601913884.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now return to the original data table.&amp;nbsp; All of the columns with Spec Limits are now selected.&lt;/P&gt;
&lt;P&gt;Select&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Cols=&amp;gt;Group Columns&lt;/P&gt;
&lt;P&gt;or go to the red triangle in the Columns Panel and select&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_2-1722602307333.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66753iB374DE7862A7456B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_2-1722602307333.png" alt="txnelson_2-1722602307333.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The columns will now be grouped&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_3-1722602371629.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66754i059C29DA72BA721E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_3-1722602371629.png" alt="txnelson_3-1722602371629.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;To change the name to myGroup, double click on the default name&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_4-1722602503507.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66755i1B528167021A289A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_4-1722602503507.png" alt="txnelson_4-1722602503507.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Type in the name myGroup and press the enter key&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_5-1722602577209.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66756i14B56FFA3644E45F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_5-1722602577209.png" alt="txnelson_5-1722602577209.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Other Community Members may have other methods&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 12:43:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-columns-with-spec-limits-and-group-them-in-JSL/m-p/778300#M95996</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-08-02T12:43:30Z</dc:date>
    </item>
  </channel>
</rss>

