<?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 Unexpected Events from Local Data Filter Change Handler in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Unexpected-Events-from-Local-Data-Filter-Change-Handler/m-p/511169#M73924</link>
    <description>&lt;P&gt;Below is some illustrative code that displays a graph with a local data filter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;namesDefaultToHere(1);

dt = open("$SAMPLE_DATA/Big Class.jmp");

graphContent = VListBox(
	dt &amp;lt;&amp;lt; Bivariate( 
		Y(:weight), 
		X(:height) 
	)	
);

NewWindow("Test",
	Data Filter Context Box(
		BorderBox(top(20),bottom(20),left(20),right(20),
			HListBox(
			
				// local data filter
				::df = dt &amp;lt;&amp;lt; Data Filter( local,
					AddFilter(
						columns(:sex),
						display(:sex,"List Display")
					)
				),

				// some content
				graphContent	
							
			)
		)
	)
);

// define event handler for data filter

::rs = ::df &amp;lt;&amp;lt; makeFilterChangeHandler(
	function({x},
		show("data filter event handler");	
		show(hptime());	
	)
);

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Making selections to the data filter triggers the event handler, as expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the event handler also gets triggered just by hovering over data points in the graph.&amp;nbsp; Does anyone have any thoughts on why that would happen?&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 17:01:52 GMT</pubDate>
    <dc:creator>David_Burnham</dc:creator>
    <dc:date>2023-06-09T17:01:52Z</dc:date>
    <item>
      <title>Unexpected Events from Local Data Filter Change Handler</title>
      <link>https://community.jmp.com/t5/Discussions/Unexpected-Events-from-Local-Data-Filter-Change-Handler/m-p/511169#M73924</link>
      <description>&lt;P&gt;Below is some illustrative code that displays a graph with a local data filter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;namesDefaultToHere(1);

dt = open("$SAMPLE_DATA/Big Class.jmp");

graphContent = VListBox(
	dt &amp;lt;&amp;lt; Bivariate( 
		Y(:weight), 
		X(:height) 
	)	
);

NewWindow("Test",
	Data Filter Context Box(
		BorderBox(top(20),bottom(20),left(20),right(20),
			HListBox(
			
				// local data filter
				::df = dt &amp;lt;&amp;lt; Data Filter( local,
					AddFilter(
						columns(:sex),
						display(:sex,"List Display")
					)
				),

				// some content
				graphContent	
							
			)
		)
	)
);

// define event handler for data filter

::rs = ::df &amp;lt;&amp;lt; makeFilterChangeHandler(
	function({x},
		show("data filter event handler");	
		show(hptime());	
	)
);

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Making selections to the data filter triggers the event handler, as expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the event handler also gets triggered just by hovering over data points in the graph.&amp;nbsp; Does anyone have any thoughts on why that would happen?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 17:01:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Unexpected-Events-from-Local-Data-Filter-Change-Handler/m-p/511169#M73924</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2023-06-09T17:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected Events from Local Data Filter Change Handler</title>
      <link>https://community.jmp.com/t5/Discussions/Unexpected-Events-from-Local-Data-Filter-Change-Handler/m-p/511279#M73929</link>
      <description>&lt;P&gt;One way that you can distinguish these messages is by testing for x==(-1).&amp;nbsp; This message should probably be omitted for the df&amp;lt;&amp;lt;makeFilterChangeHandler().&amp;nbsp; It has more meaning for box&amp;lt;&amp;lt;makeRowStateHandler(), which has to handle the case when filters are added or removed.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 12:20:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Unexpected-Events-from-Local-Data-Filter-Change-Handler/m-p/511279#M73929</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2022-06-21T12:20:06Z</dc:date>
    </item>
  </channel>
</rss>

