<?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: Reset selection button on global filter in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Reset-selection-button-on-global-filter/m-p/830039#M101244</link>
    <description>&lt;P&gt;There might be better options, but you can look for the button and then click it with a script&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Cities.jmp");
nw = New Window("",df = dt &amp;lt;&amp;lt; Data Filter(
	Location({379, 384}),
	Mode(Include(1)),
	Add Filter(
		columns(:Region, :POP),
		Where(:Region == "MW"),
		Display(:Region, N Items(6))
	)
));

dt &amp;lt;&amp;lt; Select Rows([1]);

btn = (nw &amp;lt;&amp;lt; XPath("//ButtonBox[@title = 'Reset selection']"));
btn &amp;lt;&amp;lt; click(1);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 31 Jan 2025 16:57:29 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2025-01-31T16:57:29Z</dc:date>
    <item>
      <title>Reset selection button on global filter</title>
      <link>https://community.jmp.com/t5/Discussions/Reset-selection-button-on-global-filter/m-p/830016#M101241</link>
      <description>&lt;P&gt;hey everyone, I was wondering if anyone knew a way to use JSL to recreate the action of pressing this button&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shampton82_0-1738341880297.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72414iB350DD02CA794510/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shampton82_0-1738341880297.png" alt="shampton82_0-1738341880297.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I looked in the scripting index and didn't see anything that appears to related to this function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any guidance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 16:47:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reset-selection-button-on-global-filter/m-p/830016#M101241</guid>
      <dc:creator>shampton82</dc:creator>
      <dc:date>2025-01-31T16:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Reset selection button on global filter</title>
      <link>https://community.jmp.com/t5/Discussions/Reset-selection-button-on-global-filter/m-p/830039#M101244</link>
      <description>&lt;P&gt;There might be better options, but you can look for the button and then click it with a script&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Cities.jmp");
nw = New Window("",df = dt &amp;lt;&amp;lt; Data Filter(
	Location({379, 384}),
	Mode(Include(1)),
	Add Filter(
		columns(:Region, :POP),
		Where(:Region == "MW"),
		Display(:Region, N Items(6))
	)
));

dt &amp;lt;&amp;lt; Select Rows([1]);

btn = (nw &amp;lt;&amp;lt; XPath("//ButtonBox[@title = 'Reset selection']"));
btn &amp;lt;&amp;lt; click(1);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Jan 2025 16:57:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reset-selection-button-on-global-filter/m-p/830039#M101244</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-01-31T16:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reset selection button on global filter</title>
      <link>https://community.jmp.com/t5/Discussions/Reset-selection-button-on-global-filter/m-p/830043#M101246</link>
      <description>&lt;P&gt;Any update of the data filter will give back the control.&lt;BR /&gt;you could trigger an update which doesn't change the selection, like&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;df &amp;lt;&amp;lt;Inverse(0)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;[if it was &lt;FONT face="courier new,courier"&gt;inverse(1)&lt;/FONT&gt; before, use &lt;FONT face="courier new,courier"&gt;Inverse(1)&lt;/FONT&gt;]&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 17:52:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reset-selection-button-on-global-filter/m-p/830043#M101246</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-01-31T17:52:21Z</dc:date>
    </item>
  </channel>
</rss>

