<?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: Display Data Table Filter As a Simple Text Edit Box ( Not List Not Slider ) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Display-Data-Table-Filter-As-a-Simple-Text-Edit-Box-Not-List-Not/m-p/47814#M27230</link>
    <description>&lt;P&gt;You could set the where clause in the data filter yourself when the value in a number edit box changes, and hide the normal user interface:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Number edit box filter.PNG" style="width: 703px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8479iAEBE6A9EE8C37A14/image-size/large?v=v2&amp;amp;px=999" role="button" title="Number edit box filter.PNG" alt="Number edit box filter.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here( 1 );

dt = Open( "$SAMPLE_DATA/Time Series/Raleigh Temps.jmp" );

New window(
	"Graph with filter",
	Data filter context box(
		H list box(
			V list box(
				Text Box( "Enter month:"),
				Number Edit Box( 1,
					&amp;lt;&amp;lt;SetFunction( Function( {neb}, 
						ldf &amp;lt;&amp;lt; (Filter Column( :Month Number ) &amp;lt;&amp;lt; Where( :Month Number == ( neb &amp;lt;&amp;lt; Get ) ) );
					))
				),
				lb = outline box( 
					"data filter", 
					ldf = dt &amp;lt;&amp;lt; Data filter( 
						"Local", 
						Add Filter(
							columns( :Month Number ),
							Where( :Month Number == 1 )
						)
					)
				),
				&amp;lt;&amp;lt; Padding(
					Left(20), Right(20), Top(20), Bottom(20)
				)
			),
			dt &amp;lt;&amp;lt; Graph Builder(
				Size( 400, 300 ),
				Show Control Panel( 0 ),
				Variables(
					X( :Name( "Month/Year" ) ),
					Y( :Temperature ),
					Y( :Predicted Temperature, Position( 1 ) )
				),
				Elements( Line( X, Y( 1 ), Y( 2 ), Legend( 23 ) ) )
			);
		)
	)
);

lb &amp;lt;&amp;lt; Visibility("collapse");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Nov 2017 01:59:58 GMT</pubDate>
    <dc:creator>ih</dc:creator>
    <dc:date>2017-11-29T01:59:58Z</dc:date>
    <item>
      <title>Display Data Table Filter As a Simple Text Edit Box ( Not List Not Slider )</title>
      <link>https://community.jmp.com/t5/Discussions/Display-Data-Table-Filter-As-a-Simple-Text-Edit-Box-Not-List-Not/m-p/47802#M27226</link>
      <description>&lt;P&gt;All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I would like to know if there is a way to make the Data Filter a text edit box or number edit box instead of the default List Type Display or the Slider view .&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;dt = Open( "$SAMPLE_DATA/Time Series/Raleigh Temps.jmp" );

// Traditional Slider View 
dt &amp;lt;&amp;lt; Graph Builder(
						Size( 814, 714 ),
						Variables(
							X( :Name( "Month/Year" ) ),
							Y( :Temperature ),
							Y( :Predicted Temperature, Position( 1 ) )
						),
						Elements( Line( X, Y( 1 ), Y( 2 ), Legend( 23 ) ) ),
						Local Data Filter( Conditional, Add Filter( columns( :Month Number ), Display( :Container, Size( 160, 225 ), List Display )) )
					);&lt;/PRE&gt;&lt;P&gt;The above code produces this : ( Slider View)&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8474i4FB4884F2E611367/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Instead , by remodeling the column as Ordinal data , I can generate the LIst Display for the data filter&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;Col = Column(dt,"Month Number"); 
Col &amp;lt;&amp;lt; Set Modeling Type("Ordinal");
dt &amp;lt;&amp;lt; Graph Builder(
						Size( 814, 714 ),
						Variables(
							X( :Name( "Month/Year" ) ),
							Y( :Temperature ),
							Y( :Predicted Temperature, Position( 1 ) )
						),
						Elements( Line( X, Y( 1 ), Y( 2 ), Legend( 23 ) ) ),
						Local Data Filter( Conditional, Add Filter( columns( :Month Number ), Display( :Container, Size( 160, 225 ), List Display )) )
					);&lt;/PRE&gt;&lt;P&gt;The above code generates this :&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8475i9BD660AC96019DA7/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Instead , I would like to have the Data Filter displayed as a text edit box / number edit box . I remember going down this path at one point , but dont remember the result - if anybody can address it - please kindly share .&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Best&amp;nbsp;&lt;BR /&gt;Uday&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 20:31:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Display-Data-Table-Filter-As-a-Simple-Text-Edit-Box-Not-List-Not/m-p/47802#M27226</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2017-11-28T20:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Display Data Table Filter As a Simple Text Edit Box ( Not List Not Slider )</title>
      <link>https://community.jmp.com/t5/Discussions/Display-Data-Table-Filter-As-a-Simple-Text-Edit-Box-Not-List-Not/m-p/47814#M27230</link>
      <description>&lt;P&gt;You could set the where clause in the data filter yourself when the value in a number edit box changes, and hide the normal user interface:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Number edit box filter.PNG" style="width: 703px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8479iAEBE6A9EE8C37A14/image-size/large?v=v2&amp;amp;px=999" role="button" title="Number edit box filter.PNG" alt="Number edit box filter.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here( 1 );

dt = Open( "$SAMPLE_DATA/Time Series/Raleigh Temps.jmp" );

New window(
	"Graph with filter",
	Data filter context box(
		H list box(
			V list box(
				Text Box( "Enter month:"),
				Number Edit Box( 1,
					&amp;lt;&amp;lt;SetFunction( Function( {neb}, 
						ldf &amp;lt;&amp;lt; (Filter Column( :Month Number ) &amp;lt;&amp;lt; Where( :Month Number == ( neb &amp;lt;&amp;lt; Get ) ) );
					))
				),
				lb = outline box( 
					"data filter", 
					ldf = dt &amp;lt;&amp;lt; Data filter( 
						"Local", 
						Add Filter(
							columns( :Month Number ),
							Where( :Month Number == 1 )
						)
					)
				),
				&amp;lt;&amp;lt; Padding(
					Left(20), Right(20), Top(20), Bottom(20)
				)
			),
			dt &amp;lt;&amp;lt; Graph Builder(
				Size( 400, 300 ),
				Show Control Panel( 0 ),
				Variables(
					X( :Name( "Month/Year" ) ),
					Y( :Temperature ),
					Y( :Predicted Temperature, Position( 1 ) )
				),
				Elements( Line( X, Y( 1 ), Y( 2 ), Legend( 23 ) ) )
			);
		)
	)
);

lb &amp;lt;&amp;lt; Visibility("collapse");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 01:59:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Display-Data-Table-Filter-As-a-Simple-Text-Edit-Box-Not-List-Not/m-p/47814#M27230</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2017-11-29T01:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Display Data Table Filter As a Simple Text Edit Box ( Not List Not Slider )</title>
      <link>https://community.jmp.com/t5/Discussions/Display-Data-Table-Filter-As-a-Simple-Text-Edit-Box-Not-List-Not/m-p/47832#M27241</link>
      <description>&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6657"&gt;@ih&lt;/a&gt;,&lt;BR /&gt;In the example you have provided, can you use the "Month/Year" column instead ? For when you have a date - wouldn't this approach require a Number Edit Box for Month, Day and Year respectively ? Or can it be done with Number Edit box ? The only way , I can think of is by translating the text into a number that equals the date , please let me know if there is a better alternative .</description>
      <pubDate>Wed, 29 Nov 2017 15:14:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Display-Data-Table-Filter-As-a-Simple-Text-Edit-Box-Not-List-Not/m-p/47832#M27241</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2017-11-29T15:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Display Data Table Filter As a Simple Text Edit Box ( Not List Not Slider )</title>
      <link>https://community.jmp.com/t5/Discussions/Display-Data-Table-Filter-As-a-Simple-Text-Edit-Box-Not-List-Not/m-p/47833#M27242</link>
      <description>&lt;P&gt;Here is one way.&amp;nbsp;&amp;nbsp;I am not sure if it is possible to read the text edit box value using an input format (as in data table cells)&amp;nbsp;but I like the flexiblity of regex:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph with filter.PNG" style="width: 989px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8486i7AA0BE087F68B504/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph with filter.PNG" alt="graph with filter.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here( 1 );

dt = Open( "$SAMPLE_DATA/Time Series/Raleigh Temps.jmp" );

New window(
	"Graph with filter",
	Data filter context box(
		H list box(
			V list box(
				Text Box( "Enter month and year (mm/yyyy):"),
				Text Edit Box( "01/1980",
					&amp;lt;&amp;lt;SetFunction( Function( {teb}, 
						str = teb &amp;lt;&amp;lt; Get text;
						
						//Pull out the month and year parts of the date:
						rgx = Regex Match( str, "^(\d\d)/(\d{4})$" );
						
						//Check if input is in the right format
						If( Length( rgx ) == 3, 
							//Should also check for valid month and year values
							
							//Text is in the right format, calculate the date and change the filter
							mnth = Date mdy( num( rgx[2] ), 1, num( rgx[3] ) );
							ldf &amp;lt;&amp;lt; (Filter Column( :Name( "Month/Year" ) ) &amp;lt;&amp;lt; Where( :Name( "Month/Year" ) == mnth ) );
						,
							//incorrect text entered, reset it
							teb &amp;lt;&amp;lt; Set Text( "01/1980" ); 
						)
					)),
					&amp;lt;&amp;lt; Set Width( 200 )
				),
				ob = outline box( "data filter", 
					ldf = dt &amp;lt;&amp;lt; Data filter( 
						"Local", 
						Add Filter(
							columns( :Name( "Month/Year" ) ),
							Where( :Name( "Month/Year" ) == Date mdy(1, 1, 1080) )
						)
					)
				),
				&amp;lt;&amp;lt; Padding( Left(20), Right(20), Top(20), Bottom(20) )
			),
			dt &amp;lt;&amp;lt; Graph Builder(
				Size( 400, 300 ),
				Show Control Panel( 0 ),
				Variables(
					X( :Name( "Month/Year" ) ),
					Y( :Temperature ),
					Y( :Predicted Temperature, Position( 1 ) )
				),
				Elements( Line( X, Y( 1 ), Y( 2 ), Legend( 23 ) ) )
			);
		)
	)
);

ob &amp;lt;&amp;lt; Visibility("collapse");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edited:&amp;nbsp;forgot screenshot.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 15:45:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Display-Data-Table-Filter-As-a-Simple-Text-Edit-Box-Not-List-Not/m-p/47833#M27242</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2017-11-29T15:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Display Data Table Filter As a Simple Text Edit Box ( Not List Not Slider )</title>
      <link>https://community.jmp.com/t5/Discussions/Display-Data-Table-Filter-As-a-Simple-Text-Edit-Box-Not-List-Not/m-p/47835#M27243</link>
      <description>&lt;P&gt;Did you know that you can also click on either one of the current&amp;nbsp;limits in the Data Filter and enter a new one?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 16:01:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Display-Data-Table-Filter-As-a-Simple-Text-Edit-Box-Not-List-Not/m-p/47835#M27243</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-11-29T16:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Display Data Table Filter As a Simple Text Edit Box ( Not List Not Slider )</title>
      <link>https://community.jmp.com/t5/Discussions/Display-Data-Table-Filter-As-a-Simple-Text-Edit-Box-Not-List-Not/m-p/47836#M27244</link>
      <description>&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt; : can you please elaborate or demonstrate what you are saying ?&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Nov 2017 16:03:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Display-Data-Table-Filter-As-a-Simple-Text-Edit-Box-Not-List-Not/m-p/47836#M27244</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2017-11-29T16:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Display Data Table Filter As a Simple Text Edit Box ( Not List Not Slider )</title>
      <link>https://community.jmp.com/t5/Discussions/Display-Data-Table-Filter-As-a-Simple-Text-Edit-Box-Not-List-Not/m-p/47843#M27251</link>
      <description>&lt;P&gt;I like to keep things simple. The 'slider view' that you refer to shows the upper and lower limits of the current&amp;nbsp;filter. You don't have to use the slider to change the range. You can also click on the current value (number) and enter a new one. This way you can use the data filter object (simple) and avoid additional coding that might not really add new functionality.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 16:36:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Display-Data-Table-Filter-As-a-Simple-Text-Edit-Box-Not-List-Not/m-p/47843#M27251</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-11-29T16:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Display Data Table Filter As a Simple Text Edit Box ( Not List Not Slider )</title>
      <link>https://community.jmp.com/t5/Discussions/Display-Data-Table-Filter-As-a-Simple-Text-Edit-Box-Not-List-Not/m-p/47862#M27260</link>
      <description>&lt;P&gt;Here's a GIF that shows clicking on the value in the slider to set it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DataFilterSliderClick.gif" style="width: 624px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8493i3A348B2859B0DA07/image-size/large?v=v2&amp;amp;px=999" role="button" title="DataFilterSliderClick.gif" alt="DataFilterSliderClick.gif" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 17:56:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Display-Data-Table-Filter-As-a-Simple-Text-Edit-Box-Not-List-Not/m-p/47862#M27260</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2017-11-29T17:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Display Data Table Filter As a Simple Text Edit Box ( Not List Not Slider )</title>
      <link>https://community.jmp.com/t5/Discussions/Display-Data-Table-Filter-As-a-Simple-Text-Edit-Box-Not-List-Not/m-p/47873#M27264</link>
      <description>&lt;P&gt;Interestingly, the 'keep things simple' mentality is the exact reason I &lt;EM&gt;would &lt;/EM&gt;consider coding this.&amp;nbsp;&amp;nbsp;For a&amp;nbsp;seasoned JSL user who knows about the&amp;nbsp;numeric entries, and already learned not to lower the upper limit before lowering the bottom limit, and knows what Show, Include, and Inverse mean, simple code is probably better.&amp;nbsp; For the best &lt;EM&gt;&lt;STRONG&gt;user&lt;/STRONG&gt; &lt;/EM&gt;experience though, if they only want to see one data point&amp;nbsp;at a time from a long list of possible dates, it is hard to get simpler than a well-described&amp;nbsp;box where you enter a date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A&amp;nbsp;GUI should be hard to explain because it you never had to think about&amp;nbsp;it before,&amp;nbsp;not because it requires specific steps in a specific order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course this might not relate Uday's problem at hand.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 19:15:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Display-Data-Table-Filter-As-a-Simple-Text-Edit-Box-Not-List-Not/m-p/47873#M27264</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2017-11-29T19:15:10Z</dc:date>
    </item>
  </channel>
</rss>

