<?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: How to connect check boxes to data output with dashboard? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-connect-check-boxes-to-data-output-with-dashboard/m-p/608778#M81014</link>
    <description>&lt;P&gt;There are quite a few options depending on your application, below are few:&lt;/P&gt;
&lt;P&gt;Easiest option would most likely be to use Data Filter&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1678135176124.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50769iAFB5A356CE6FFD8F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1678135176124.png" alt="jthi_0-1678135176124.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other option could be to use &amp;lt;&amp;lt; Set Function which you could script to Hide and Exclude correct rows in your data table&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
Summarize(dt, uniq_names = by(:Name));

nw = New Window("",
	h list box(
		Check Box(
			uniq_names,
			&amp;lt;&amp;lt; Set Function(function({this},
				sel_names = (this &amp;lt;&amp;lt; get selected);
				// row state 6 is hide and exclude
				rows_to_hide = dt &amp;lt;&amp;lt; Get Rows Where(Contains(sel_names, :name));
				m = J(1, NRows(dt), 6);
				m[rows_to_hide] = 0;
				dt &amp;lt;&amp;lt; Set Row States(m);
			))
		),
		gb = Graph Builder(
			Size(528, 456),
			Show Control Panel(0),
			Variables(X(:weight), Y(:height)),
			Elements(Points(X, Y, Legend(5)), Smoother(X, Y, Legend(6)))
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 06 Mar 2023 20:49:09 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2023-03-06T20:49:09Z</dc:date>
    <item>
      <title>How to connect check boxes to data output with dashboard?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-connect-check-boxes-to-data-output-with-dashboard/m-p/608587#M81001</link>
      <description>&lt;P&gt;Wondering how I can filter which data gets plotted based on Checkboxes in a dashboard?&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example below, selected options would result in the chart displaying Apple and Orange data, and omit anything with Banana or Pear.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lcpaul41_1-1678120392391.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50751i131BC91DBD3E3DB9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lcpaul41_1-1678120392391.png" alt="lcpaul41_1-1678120392391.png" /&gt;&lt;/span&gt;&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="lcpaul41_0-1678120267875.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50750i0DE46BA0AFCDA4AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lcpaul41_0-1678120267875.png" alt="lcpaul41_0-1678120267875.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:31:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-connect-check-boxes-to-data-output-with-dashboard/m-p/608587#M81001</guid>
      <dc:creator>lcpaul41</dc:creator>
      <dc:date>2023-06-08T16:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect check boxes to data output with dashboard?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-connect-check-boxes-to-data-output-with-dashboard/m-p/608778#M81014</link>
      <description>&lt;P&gt;There are quite a few options depending on your application, below are few:&lt;/P&gt;
&lt;P&gt;Easiest option would most likely be to use Data Filter&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1678135176124.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50769iAFB5A356CE6FFD8F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1678135176124.png" alt="jthi_0-1678135176124.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other option could be to use &amp;lt;&amp;lt; Set Function which you could script to Hide and Exclude correct rows in your data table&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
Summarize(dt, uniq_names = by(:Name));

nw = New Window("",
	h list box(
		Check Box(
			uniq_names,
			&amp;lt;&amp;lt; Set Function(function({this},
				sel_names = (this &amp;lt;&amp;lt; get selected);
				// row state 6 is hide and exclude
				rows_to_hide = dt &amp;lt;&amp;lt; Get Rows Where(Contains(sel_names, :name));
				m = J(1, NRows(dt), 6);
				m[rows_to_hide] = 0;
				dt &amp;lt;&amp;lt; Set Row States(m);
			))
		),
		gb = Graph Builder(
			Size(528, 456),
			Show Control Panel(0),
			Variables(X(:weight), Y(:height)),
			Elements(Points(X, Y, Legend(5)), Smoother(X, Y, Legend(6)))
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Mar 2023 20:49:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-connect-check-boxes-to-data-output-with-dashboard/m-p/608778#M81014</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-03-06T20:49:09Z</dc:date>
    </item>
  </channel>
</rss>

