<?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 Retrieving Selected Items from Filter in JMP Graph Using JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Retrieving-Selected-Items-from-Filter-in-JMP-Graph-Using-JSL/m-p/829102#M101099</link>
    <description>&lt;P&gt;&lt;SPAN&gt;In JMP, the values entered in the Text edit box can be retrieved using get text(); for items in the List box, they can be retrieved using get items().&lt;BR /&gt;Is there a way to get the currently selected items in the Filter of the current Graph? In the JSL below, I hope that when the Saving button above is pressed, I can obtain the items selected by the user in the Filter. How can I achieve this?&lt;BR /&gt;For example, how should I record that the user has selected "14 years old" in the Age Filter?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "Chamber condition checker", 
SavingButton=Button Box( "Save filter setting",),
	Graph Builder(
		Size( 528, 456 ),
		Show Control Panel( 0 ),
		Variables( X( :weight ), Y( :height ) ),
		Elements( Points( X, Y, Legend( 36 ) ), Smoother( X, Y, Legend( 37 ) ) ),
		Local Data Filter( Add Filter( columns( :age ), Where( :age == 12 ), Display( :age, N Items( 6 ) ) ) )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 24 Jan 2025 09:15:29 GMT</pubDate>
    <dc:creator>BabyDoragon</dc:creator>
    <dc:date>2025-01-24T09:15:29Z</dc:date>
    <item>
      <title>Retrieving Selected Items from Filter in JMP Graph Using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Retrieving-Selected-Items-from-Filter-in-JMP-Graph-Using-JSL/m-p/829102#M101099</link>
      <description>&lt;P&gt;&lt;SPAN&gt;In JMP, the values entered in the Text edit box can be retrieved using get text(); for items in the List box, they can be retrieved using get items().&lt;BR /&gt;Is there a way to get the currently selected items in the Filter of the current Graph? In the JSL below, I hope that when the Saving button above is pressed, I can obtain the items selected by the user in the Filter. How can I achieve this?&lt;BR /&gt;For example, how should I record that the user has selected "14 years old" in the Age Filter?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "Chamber condition checker", 
SavingButton=Button Box( "Save filter setting",),
	Graph Builder(
		Size( 528, 456 ),
		Show Control Panel( 0 ),
		Variables( X( :weight ), Y( :height ) ),
		Elements( Points( X, Y, Legend( 36 ) ), Smoother( X, Y, Legend( 37 ) ) ),
		Local Data Filter( Add Filter( columns( :age ), Where( :age == 12 ), Display( :age, N Items( 6 ) ) ) )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Jan 2025 09:15:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Retrieving-Selected-Items-from-Filter-in-JMP-Graph-Using-JSL/m-p/829102#M101099</guid>
      <dc:creator>BabyDoragon</dc:creator>
      <dc:date>2025-01-24T09:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving Selected Items from Filter in JMP Graph Using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Retrieving-Selected-Items-from-Filter-in-JMP-Graph-Using-JSL/m-p/829115#M101101</link>
      <description>&lt;P&gt;You can use &amp;lt;&amp;lt; Get Where clause on the filter object&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1737712454179.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72260i010FFEF849546364/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1737712454179.png" alt="jthi_0-1737712454179.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

Names Default To Here(1); 

dt = Open("$SAMPLE_DATA/Big Class.jmp");

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(528, 456),
	Show Control Panel(0),
	Variables(X(:weight), Y(:height)),
	Elements(Points(X, Y, Legend(36)), Smoother(X, Y, Legend(37))),
	Local Data Filter(Add Filter(columns(:age), Where(:age == 12), Display(:age, N Items(6))))
);

((gb &amp;lt;&amp;lt; Top Parent)["Local Data Filter"]  &amp;lt;&amp;lt; Get Scriptable Object) &amp;lt;&amp;lt; Get where clause;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Jan 2025 09:54:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Retrieving-Selected-Items-from-Filter-in-JMP-Graph-Using-JSL/m-p/829115#M101101</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-01-24T09:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving Selected Items from Filter in JMP Graph Using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Retrieving-Selected-Items-from-Filter-in-JMP-Graph-Using-JSL/m-p/829221#M101116</link>
      <description>&lt;P&gt;To get the selected &lt;U&gt;&lt;STRONG&gt;rows&lt;/STRONG&gt;&lt;/U&gt;, talk to the LDF and ask :&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Get Filtered rows()&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 

dt = Open("$SAMPLE_DATA/Big Class.jmp");

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(400, 400),
	Show Control Panel(0),
	Variables(X(:weight), Y(:height)),
	Elements(Points(X, Y)),
	Local Data Filter( Add Filter(columns(:age), Where(:age == 14)))
);

(current report()["Local Data Filter"]  &amp;lt;&amp;lt; Get Scriptable Object) &amp;lt;&amp;lt; Get Filtered  rows;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Often I want to create a subset with the selected rows.&lt;BR /&gt;To generate such a subset, you can click on&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1737906810618.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72272iAB35523DAAF28F37/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1737906810618.png" alt="hogi_0-1737906810618.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;in the GraphBuilder (&lt;EM&gt;aka Report&lt;/EM&gt;) Toolbar which can be downloaded from the Markeplace: &lt;A href="https://marketplace.jmp.com/appdetails/Graph+Builder+Toolbar" target="_blank" rel="noopener"&gt;https://marketplace.jmp.com/appdetails/Graph+Builder+Toolbar&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jan 2025 15:55:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Retrieving-Selected-Items-from-Filter-in-JMP-Graph-Using-JSL/m-p/829221#M101116</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-01-26T15:55:30Z</dc:date>
    </item>
  </channel>
</rss>

