<?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 Data filter for drop down box in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Data-filter-for-drop-down-box/m-p/612873#M81311</link>
    <description>&lt;P&gt;Hi, all. There might be similar questions here,&amp;nbsp; but I didn't find one that solves my problem.&lt;/P&gt;&lt;P&gt;On the dashboard, I made inputs into a drop down box. i want the output table to change when I select different inputs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What functions should I use and is there a sample somewhere?&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2023 16:28:10 GMT</pubDate>
    <dc:creator>OrthogonalCrow3</dc:creator>
    <dc:date>2023-06-08T16:28:10Z</dc:date>
    <item>
      <title>Data filter for drop down box</title>
      <link>https://community.jmp.com/t5/Discussions/Data-filter-for-drop-down-box/m-p/612873#M81311</link>
      <description>&lt;P&gt;Hi, all. There might be similar questions here,&amp;nbsp; but I didn't find one that solves my problem.&lt;/P&gt;&lt;P&gt;On the dashboard, I made inputs into a drop down box. i want the output table to change when I select different inputs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What functions should I use and is there a sample somewhere?&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:28:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-filter-for-drop-down-box/m-p/612873#M81311</guid>
      <dc:creator>OrthogonalCrow3</dc:creator>
      <dc:date>2023-06-08T16:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Data filter for drop down box</title>
      <link>https://community.jmp.com/t5/Discussions/Data-filter-for-drop-down-box/m-p/615265#M81501</link>
      <description>&lt;P&gt;You can use the &amp;lt;&amp;lt; Set function. Please refer to the following page.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.jmp.com/t5/JMP-Knowledge-Base/How-to-dynamically-populate-a-ComboBox-based-upon-user-selection/ta-p/575407" target="_blank" rel="noopener"&gt;https://community.jmp.com/t5/JMP-Knowledge-Base/How-to-dynamically-populate-a-ComboBox-based-upon-user-selection/ta-p/575407&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

make_tabulate_script = Function( {col},
	tablate_script = Parse(
		Eval Insert(
			"dt &amp;lt;&amp;lt; Tabulate(
		Show Control Panel( 0 ),
		Add Table(
			Column Table( Analysis Columns( ^col^ ), Statistics( Mean ) ),
			Row Table( Grouping Columns( :sex ) )
		)
	)"
		)
	);
	Eval Expr( tablate_script );
);

tablate_script = make_tabulate_script( ":height" );

nw = New Window( "new window",
	vb1 = H List Box(
		V List Box(
			Text Box( "Please Slect" ),
			cb = Combo Box(
				{":height", ":weight"},
				&amp;lt;&amp;lt;set function(
					Function( {this, index},
						Try( table &amp;lt;&amp;lt; delete );
						Match( index,
							1,
								tablate_script = make_tabulate_script( ":height" );
								vb1 &amp;lt;&amp;lt; append( table = Eval( tablate_script ) );,
							2,
								tablate_script = make_tabulate_script( ":weight" );
								vb1 &amp;lt;&amp;lt; append( table = Eval( tablate_script ) );
						);
					)
				)
			)
		),
		table = Eval( tablate_script )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Mar 2023 02:22:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Data-filter-for-drop-down-box/m-p/615265#M81501</guid>
      <dc:creator>yuichi_katsumur</dc:creator>
      <dc:date>2023-03-22T02:22:23Z</dc:date>
    </item>
  </channel>
</rss>

