<?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 Source Box / Selection Filter Output Selection in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Data-Filter-Source-Box-Selection-Filter-Output-Selection/m-p/276650#M53692</link>
    <description>This is a unique solution and I like it. I think a Row State of 6 is both hidden and excluded, though.&lt;BR /&gt;&lt;BR /&gt;Thank you &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 02 Jul 2020 14:48:52 GMT</pubDate>
    <dc:creator>Martin</dc:creator>
    <dc:date>2020-07-02T14:48:52Z</dc:date>
    <item>
      <title>Data Filter Source Box / Selection Filter Output Selection</title>
      <link>https://community.jmp.com/t5/Discussions/Data-Filter-Source-Box-Selection-Filter-Output-Selection/m-p/276577#M53667</link>
      <description>&lt;P&gt;Is there a way to "read" or output what has been selected in a Data Filter Source Box graph?&amp;nbsp; I want to use the information to change a Data Table Data Filter.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:30:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-Filter-Source-Box-Selection-Filter-Output-Selection/m-p/276577#M53667</guid>
      <dc:creator>Martin</dc:creator>
      <dc:date>2023-06-09T23:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Data Filter Source Box / Selection Filter Output Selection</title>
      <link>https://community.jmp.com/t5/Discussions/Data-Filter-Source-Box-Selection-Filter-Output-Selection/m-p/276616#M53675</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2501"&gt;@Martin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Selections via a graph UI that has, select and lasso, etc tools, there might be no logic just user selected points.&amp;nbsp; So the Context filter only returns the row states. The script below is a modification of one written for JSL Companion, 2nd Ed. It does not use a transformed variable (to make it more intuitive) and it add a row state handler, to capture the results of any change.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The handler function merely prints to the log the rows states and the rows that are excluded.&amp;nbsp; It uses a simple loc() function looking for 6 the excluded state.&amp;nbsp; This will need a bit more work if colors and other states are changed.&amp;nbsp; This was a simple case. If your use is different you will have to provide details&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&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/24955i670BC14CB961DE9A/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;This screenshot shows the filter. The left set of XY graphs are included in the context box, the right set titled unfiltered are the same XY graphs but not included in the context box. The portion of code that gets the filtered(excluded) rows is shown below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After you make selections, if you run the last commented line below you will see the points in the unfiltered side highlighted (selected);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//dfsb is the  object ref to the data filter source box&lt;BR /&gt;&lt;BR /&gt;excl = [];
f = function({a}, {sm},
  sm = dfsb &amp;lt;&amp;lt; get row states; 
  excl = loc(sm==6);
  print(sm,excl);
);

rs = dfsb &amp;lt;&amp;lt; Make Row State Handler( f );

//fit_dt &amp;lt;&amp;lt; select rows(excl)&amp;lt;&amp;lt;invert row selection;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Where this needs more work is the loc() function.&amp;nbsp; See the Help &amp;gt; JSL Scripting Index &amp;gt; Display Box &amp;gt; Data Filter Source Box for an example of &lt;STRONG&gt;Set Row States&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Comment I like to use a Local Data Filter that has more options.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 20:39:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-Filter-Source-Box-Selection-Filter-Output-Selection/m-p/276616#M53675</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2020-07-01T20:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Data Filter Source Box / Selection Filter Output Selection</title>
      <link>https://community.jmp.com/t5/Discussions/Data-Filter-Source-Box-Selection-Filter-Output-Selection/m-p/276650#M53692</link>
      <description>This is a unique solution and I like it. I think a Row State of 6 is both hidden and excluded, though.&lt;BR /&gt;&lt;BR /&gt;Thank you &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/70"&gt;@gzmorgan0&lt;/a&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Jul 2020 14:48:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-Filter-Source-Box-Selection-Filter-Output-Selection/m-p/276650#M53692</guid>
      <dc:creator>Martin</dc:creator>
      <dc:date>2020-07-02T14:48:52Z</dc:date>
    </item>
  </channel>
</rss>

