<?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 Hide and exclude in multiple select where in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Hide-and-exclude-in-multiple-select-where/m-p/670276#M85818</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an add-in that performs hide and exclude in a for loop. One thing I observed was that the previous hide and exclude gets overwritten by the next column condition. Additionally, I realized that it also overwrote my manual hide and exclude. I have two questions:&lt;BR /&gt;&lt;BR /&gt;1. Is there a way to concatenate multiple select where and then perform an overall hide and exclude?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For( i = 1, i &amp;lt;= N Items( list_of_cols ), i++,
            dt &amp;lt;&amp;lt; select where( As Column( dt, list_of_cols [i] ) != "");
            dt &amp;lt;&amp;lt; hide and exclude;
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2. Is there a way to keep the hide and exclude in place (manually performed in first two lines), and hide extra rows later on in the script?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; select where( :Comment =="Exclude");
dt &amp;lt;&amp;lt; hide and exclude;

For( i = 1, i &amp;lt;= N Items( list_of_cols), i++,
        dt &amp;lt;&amp;lt; select where( As Column( dt, list_of_cols[i] ) != "");
        dt &amp;lt;&amp;lt; hide and exclude;
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2023 15:37:10 GMT</pubDate>
    <dc:creator>Kenobi</dc:creator>
    <dc:date>2023-08-22T15:37:10Z</dc:date>
    <item>
      <title>Hide and exclude in multiple select where</title>
      <link>https://community.jmp.com/t5/Discussions/Hide-and-exclude-in-multiple-select-where/m-p/670276#M85818</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an add-in that performs hide and exclude in a for loop. One thing I observed was that the previous hide and exclude gets overwritten by the next column condition. Additionally, I realized that it also overwrote my manual hide and exclude. I have two questions:&lt;BR /&gt;&lt;BR /&gt;1. Is there a way to concatenate multiple select where and then perform an overall hide and exclude?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For( i = 1, i &amp;lt;= N Items( list_of_cols ), i++,
            dt &amp;lt;&amp;lt; select where( As Column( dt, list_of_cols [i] ) != "");
            dt &amp;lt;&amp;lt; hide and exclude;
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2. Is there a way to keep the hide and exclude in place (manually performed in first two lines), and hide extra rows later on in the script?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; select where( :Comment =="Exclude");
dt &amp;lt;&amp;lt; hide and exclude;

For( i = 1, i &amp;lt;= N Items( list_of_cols), i++,
        dt &amp;lt;&amp;lt; select where( As Column( dt, list_of_cols[i] ) != "");
        dt &amp;lt;&amp;lt; hide and exclude;
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 15:37:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hide-and-exclude-in-multiple-select-where/m-p/670276#M85818</guid>
      <dc:creator>Kenobi</dc:creator>
      <dc:date>2023-08-22T15:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Hide and exclude in multiple select where</title>
      <link>https://community.jmp.com/t5/Discussions/Hide-and-exclude-in-multiple-select-where/m-p/670297#M85820</link>
      <description>&lt;P&gt;The Select Where() function has the ability to "Extend" or "Restrict" the previous Select Where.&amp;nbsp; See the Scripting Index for details.&amp;nbsp; Here is an example that shows how to do that for your application.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; Select Where( :Age == 14 );
Wait( 0 );
dt &amp;lt;&amp;lt; Select Where( :sex == "M", current selection( "extend" ) );
dt &amp;lt;&amp;lt; hide and exclude;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Additionally, you could add to your Hide and Exclude, an additional option that only forces the selection to Turn On the Hide and Exclude&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; Hide and Exclude(1);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For( i = 1, i &amp;lt;= N Items( list_of_cols ), i++,
            dt &amp;lt;&amp;lt; select where( As Column( dt, list_of_cols [i] ) != "");
            dt &amp;lt;&amp;lt; hide and exclude(1);
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Aug 2023 16:04:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hide-and-exclude-in-multiple-select-where/m-p/670297#M85820</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-08-22T16:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Hide and exclude in multiple select where</title>
      <link>https://community.jmp.com/t5/Discussions/Hide-and-exclude-in-multiple-select-where/m-p/670362#M85829</link>
      <description>&lt;P&gt;Good to know!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 20:02:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hide-and-exclude-in-multiple-select-where/m-p/670362#M85829</guid>
      <dc:creator>ErraticAttack</dc:creator>
      <dc:date>2023-08-22T20:02:52Z</dc:date>
    </item>
  </channel>
</rss>

