<?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: Data Filter only by columns that are of type 'character' in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Data-Filter-only-by-columns-that-are-of-type-character/m-p/40244#M23554</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/7032"&gt;@Jim_G_Pappas&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Button Box( " Activate Filter ",
 	dfilter = dt &amp;lt;&amp;lt; data filter( Mode( Show( 1 ), Include( 1 ) ), add filter() );
 	colObjList = {};
	For( i=1, i&amp;lt;=NItems(col_name_list_chacter), i++,
  		InsertInto(colObjList, Column(col_name_list_chacter[i]) );
 	);
 	Eval(EvalExpr( dfilter &amp;lt;&amp;lt; columns( Expr(colObjList) ) ) );
       dfilter &amp;lt;&amp;lt; Display( Single Category Display );

);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note the "global" application of the option as you correctly described is achieved by apply the &lt;EM&gt;&amp;lt;&amp;lt; Display( Single Category Display )&lt;/EM&gt; to the Data Filter Object, rather than each column&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2017 20:47:04 GMT</pubDate>
    <dc:creator>Phil_Brown</dc:creator>
    <dc:date>2017-06-10T20:47:04Z</dc:date>
    <item>
      <title>Data Filter only by columns that are of type 'character'</title>
      <link>https://community.jmp.com/t5/Discussions/Data-Filter-only-by-columns-that-are-of-type-character/m-p/39206#M22922</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;col_name_list_character=dt &amp;lt;&amp;lt; Get Column Names("Character");

//  would like (if possible) to only filter by columns of type &lt;EM&gt;character&lt;/EM&gt;. 
// Same as filtering by col_name_list_character above
//
Button Box( " Activate Filter ", dfilter = dt &amp;lt;&amp;lt; data filter( Mode( Show( 1 ), Include( 1 ) ), add filter() ) ), 
//
// right now, the filter box has all columns (numeric and character)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am having a hard time figuring out how to create a data filter within my application that ONLY filters by columns of type 'character'. &amp;nbsp;A small portion of my code is attached. &amp;nbsp; Seems like this one should be easy, but I'm obviously missing something. &amp;nbsp;Any help is appreciated! &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 16:49:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-Filter-only-by-columns-that-are-of-type-character/m-p/39206#M22922</guid>
      <dc:creator>Jim_G_Pappas</dc:creator>
      <dc:date>2017-05-12T16:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Data Filter only by columns that are of type 'character'</title>
      <link>https://community.jmp.com/t5/Discussions/Data-Filter-only-by-columns-that-are-of-type-character/m-p/39216#M22926</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/7032"&gt;@Jim_G_Pappas&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Try adding:&lt;/P&gt;
&lt;PRE&gt;Button Box( " Activate Filter ",&lt;BR /&gt;&amp;nbsp;	dfilter = dt &amp;lt;&amp;lt; data filter( Mode( Show( 1 ), Include( 1 ) ), add filter() );&lt;BR /&gt;&amp;nbsp;	colObjList = {};&lt;BR /&gt;	For( i=1, i&amp;lt;=NItems(col_name_list_chacter), i++,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;		InsertInto(colObjList, Column(col_name_list_chacter[i]) );&lt;BR /&gt;&amp;nbsp;	);&lt;BR /&gt;&amp;nbsp;	Eval(EvalExpr( dfilter &amp;lt;&amp;lt; columns( Expr(colObjList) ) ) );&lt;BR /&gt;);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 21:16:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-Filter-only-by-columns-that-are-of-type-character/m-p/39216#M22926</guid>
      <dc:creator>Phil_Brown</dc:creator>
      <dc:date>2017-05-12T21:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Data Filter only by columns that are of type 'character'</title>
      <link>https://community.jmp.com/t5/Discussions/Data-Filter-only-by-columns-that-are-of-type-character/m-p/39247#M22949</link>
      <description>&lt;P&gt;That works great - I really appreciate the response!&lt;/P&gt;&lt;P&gt;The only issue is that all the options / levels are showing for each column. &amp;nbsp;So the filter list goes way off the bottom of the page. &amp;nbsp;I can manually solve this AFTER the filter shows up on the screen (Display Options &amp;gt; &amp;nbsp;Single Category Display) but am having difficulty adding this to the code. &amp;nbsp; I can do this for each column (ex.&amp;nbsp; Display( :Operator, Single Category Display ) but don't know how to "globally" do this on each column since the columns change from dataset to dataset. &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice on that one?&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2017 14:50:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-Filter-only-by-columns-that-are-of-type-character/m-p/39247#M22949</guid>
      <dc:creator>Jim_G_Pappas</dc:creator>
      <dc:date>2017-05-15T14:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Data Filter only by columns that are of type 'character'</title>
      <link>https://community.jmp.com/t5/Discussions/Data-Filter-only-by-columns-that-are-of-type-character/m-p/40244#M23554</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/7032"&gt;@Jim_G_Pappas&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Button Box( " Activate Filter ",
 	dfilter = dt &amp;lt;&amp;lt; data filter( Mode( Show( 1 ), Include( 1 ) ), add filter() );
 	colObjList = {};
	For( i=1, i&amp;lt;=NItems(col_name_list_chacter), i++,
  		InsertInto(colObjList, Column(col_name_list_chacter[i]) );
 	);
 	Eval(EvalExpr( dfilter &amp;lt;&amp;lt; columns( Expr(colObjList) ) ) );
       dfilter &amp;lt;&amp;lt; Display( Single Category Display );

);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note the "global" application of the option as you correctly described is achieved by apply the &lt;EM&gt;&amp;lt;&amp;lt; Display( Single Category Display )&lt;/EM&gt; to the Data Filter Object, rather than each column&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2017 20:47:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-Filter-only-by-columns-that-are-of-type-character/m-p/40244#M23554</guid>
      <dc:creator>Phil_Brown</dc:creator>
      <dc:date>2017-06-10T20:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Data Filter only by columns that are of type 'character'</title>
      <link>https://community.jmp.com/t5/Discussions/Data-Filter-only-by-columns-that-are-of-type-character/m-p/40247#M23557</link>
      <description>&lt;P&gt;That works great! &amp;nbsp; Thank you so much.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2017 23:19:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-Filter-only-by-columns-that-are-of-type-character/m-p/40247#M23557</guid>
      <dc:creator>Jim_G_Pappas</dc:creator>
      <dc:date>2017-06-10T23:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Data Filter only by columns that are of type 'character'</title>
      <link>https://community.jmp.com/t5/Discussions/Data-Filter-only-by-columns-that-are-of-type-character/m-p/40402#M23671</link>
      <description>You're very welcome!</description>
      <pubDate>Wed, 14 Jun 2017 09:22:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-Filter-only-by-columns-that-are-of-type-character/m-p/40402#M23671</guid>
      <dc:creator>Phil_Brown</dc:creator>
      <dc:date>2017-06-14T09:22:47Z</dc:date>
    </item>
  </channel>
</rss>

