<?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: Filtering a List Box() in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Filtering-a-List-Box/m-p/288079#M55536</link>
    <description>Yeah, that was one of my other ideas if there wasn't some special argument to the List Box to just get it to show a filter. I'll try this out.</description>
    <pubDate>Tue, 25 Aug 2020 19:55:46 GMT</pubDate>
    <dc:creator>klk</dc:creator>
    <dc:date>2020-08-25T19:55:46Z</dc:date>
    <item>
      <title>Filtering a List Box()</title>
      <link>https://community.jmp.com/t5/Discussions/Filtering-a-List-Box/m-p/288046#M55533</link>
      <description>&lt;P&gt;I'm looking for an easy way to filter a List Box() object. The simplest example I can come up with is this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
win = New Window( "Test", lbox = List Box( {"orange", "red", "green", "blue"} ) );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now I want to add a 'filter' box above the list of colors, similar to the filter you can get above a list of columns like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="klk_0-1598381278624.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/26404i18C6CA9869C8C9BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="klk_0-1598381278624.png" alt="klk_0-1598381278624.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I was hoping that there was some easy way to dump a filter on the dumb list but I'm not finding anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:36:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Filtering-a-List-Box/m-p/288046#M55533</guid>
      <dc:creator>klk</dc:creator>
      <dc:date>2023-06-09T23:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering a List Box()</title>
      <link>https://community.jmp.com/t5/Discussions/Filtering-a-List-Box/m-p/288077#M55535</link>
      <description>&lt;P&gt;You can use the Filter Col Selector() with a bit of imagination&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="coldiag.PNG" style="width: 278px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/26406i9D9FF8C4FA419EAF/image-size/large?v=v2&amp;amp;px=999" role="button" title="coldiag.PNG" alt="coldiag.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dtList = New Table("invisible",private,
	new column("Orange",character),
	new column("Red",character),
	new column("Green",character),
	new column("Blue",character),
);
New Window( "Col List Box Example", fontobj = lb = Filter Col Selector( width( 250 ) ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 19:56:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Filtering-a-List-Box/m-p/288077#M55535</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-08-25T19:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering a List Box()</title>
      <link>https://community.jmp.com/t5/Discussions/Filtering-a-List-Box/m-p/288079#M55536</link>
      <description>Yeah, that was one of my other ideas if there wasn't some special argument to the List Box to just get it to show a filter. I'll try this out.</description>
      <pubDate>Tue, 25 Aug 2020 19:55:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Filtering-a-List-Box/m-p/288079#M55536</guid>
      <dc:creator>klk</dc:creator>
      <dc:date>2020-08-25T19:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering a List Box()</title>
      <link>https://community.jmp.com/t5/Discussions/Filtering-a-List-Box/m-p/288080#M55537</link>
      <description>See my changed entry above.</description>
      <pubDate>Tue, 25 Aug 2020 19:57:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Filtering-a-List-Box/m-p/288080#M55537</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-08-25T19:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering a List Box()</title>
      <link>https://community.jmp.com/t5/Discussions/Filtering-a-List-Box/m-p/288104#M55548</link>
      <description>&lt;P&gt;One final question - is there a message to force the filter to turn on? I tried like&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Filter Col Selector( list, width(250), &amp;lt;&amp;lt; Show Filter)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;maybe a more general question is, how do I find a list of messages that an object allows?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 21:22:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Filtering-a-List-Box/m-p/288104#M55548</guid>
      <dc:creator>klk</dc:creator>
      <dc:date>2020-08-25T21:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering a List Box()</title>
      <link>https://community.jmp.com/t5/Discussions/Filtering-a-List-Box/m-p/288108#M55551</link>
      <description>&lt;P&gt;I stumbled upon the right search terms and found this:&lt;/P&gt;&lt;P&gt;&lt;LI-MESSAGE title="Making search box active in column Search Script" uid="85406" url="https://community.jmp.com/t5/Discussions/Making-search-box-active-in-column-Search-Script/m-p/85406#U85406" 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;&lt;/P&gt;&lt;P&gt;And was able to force the filter box on.&amp;nbsp; Here's what I ended up with:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dset_names = {"orange", "red", "green", "blue"};

// make a temporary table with empty columns
dt_list = New Table( "tmp_list_table", private );
For( ci = 1, ci &amp;lt;= N Items( dset_names ), ci++,
	dt_list &amp;lt;&amp;lt; New Column( dset_names[ci] )
);

colnames = {};
win = New Window( "Choose columns to import",
	&amp;lt;&amp;lt;Modal,
	&amp;lt;&amp;lt;Return Result,
	&amp;lt;&amp;lt;On Close( Close( dt_list, nosave ) ),
	H List Box(
		lb = Filter Col Selector( dt_list, width( 250 ), nlines( 10 ) ),
		// force the filter box to be displayed
		ib = (lb &amp;lt;&amp;lt; Parent) &amp;lt;&amp;lt; Xpath( "//IfBox" );
		ib &amp;lt;&amp;lt; set( 1 );,
		Lineup Box( N Col( 1 ), Spacing( 2 ),
			Button Box( "Add Selected -&amp;gt;",
				dispcols &amp;lt;&amp;lt; Append( lb &amp;lt;&amp;lt; Get Selected );
				colnames = dispcols &amp;lt;&amp;lt; Get Items;
			),
			Button Box( "&amp;lt;- Remove Selected",
				dispcols &amp;lt;&amp;lt; Remove Selected;
				colnames = dispcols &amp;lt;&amp;lt; Get Items;
			)
		),
		dispcols = List Box( {}, width( 250 ), nlines( 10 ) )
	)
);

// show what was chosen!
Show( colnames );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Aug 2020 21:43:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Filtering-a-List-Box/m-p/288108#M55551</guid>
      <dc:creator>klk</dc:creator>
      <dc:date>2020-08-25T21:43:06Z</dc:date>
    </item>
  </channel>
</rss>

