<?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 Using a radio box to select axis variable in dashboard in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Using-a-radio-box-to-select-axis-variable-in-dashboard/m-p/236668#M46712</link>
    <description>&lt;P&gt;&amp;nbsp;I have created a dashboard for checking the capability of a tensile machine containing a local filter, control chart, distribution and process capability plots, see image. I have also included a radio box with a list of chartable columns (ColList) so to allow the user to interactively chose the response to be charted:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Panel1 = Panel Box( "Column selector",
		    rb = Radio Box( ColList , width( 200 ),&lt;BR /&gt;		    1, show( rb &amp;lt;&amp;lt; Get() )
		 )
);
SelectVar = rb &amp;lt;&amp;lt; get selected;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What I want to do is get the value (SelectVar) from the radio box and use it as a variable in the other graphs. I can see how this is done using a column switcher, but I don't know how to do it using a local variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've added the jmp data file and the dashboard script files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Nov 2019 11:44:27 GMT</pubDate>
    <dc:creator>ennisbl</dc:creator>
    <dc:date>2019-11-27T11:44:27Z</dc:date>
    <item>
      <title>Using a radio box to select axis variable in dashboard</title>
      <link>https://community.jmp.com/t5/Discussions/Using-a-radio-box-to-select-axis-variable-in-dashboard/m-p/236668#M46712</link>
      <description>&lt;P&gt;&amp;nbsp;I have created a dashboard for checking the capability of a tensile machine containing a local filter, control chart, distribution and process capability plots, see image. I have also included a radio box with a list of chartable columns (ColList) so to allow the user to interactively chose the response to be charted:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Panel1 = Panel Box( "Column selector",
		    rb = Radio Box( ColList , width( 200 ),&lt;BR /&gt;		    1, show( rb &amp;lt;&amp;lt; Get() )
		 )
);
SelectVar = rb &amp;lt;&amp;lt; get selected;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What I want to do is get the value (SelectVar) from the radio box and use it as a variable in the other graphs. I can see how this is done using a column switcher, but I don't know how to do it using a local variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've added the jmp data file and the dashboard script files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 11:44:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-a-radio-box-to-select-axis-variable-in-dashboard/m-p/236668#M46712</guid>
      <dc:creator>ennisbl</dc:creator>
      <dc:date>2019-11-27T11:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using a radio box to select axis variable in dashboard</title>
      <link>https://community.jmp.com/t5/Discussions/Using-a-radio-box-to-select-axis-variable-in-dashboard/m-p/236832#M46744</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think I've made some progress towards a possible solution.&amp;nbsp; Take a look at this section of code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;	Panel1 = Panel Box( "Column selector",
									rb = Radio Box( ColList , width( 200 ), 1, cb1&amp;lt;&amp;lt;delete; Report1&amp;lt;&amp;lt;append(cb1=cbfunction(Column(rb &amp;lt;&amp;lt; get selected )));
													)
				);
				Splitter2 = V Splitter Box();
				TabPage1 = Tab Page Box();
				Scroll1 = Scroll Box();
				Report1 = Platform(
					DataTable1,
					cb1=Control Chart Builder(
						Size( 918, 368 ),
						Show Control Panel( 0 ),
						Show Excluded Region( 0 ),
						Show Limit Summaries( 0 ),
						Show Capability( 0 ),
						Variables( Subgroup( :Date ), Y(Column(rb &amp;lt;&amp;lt; get selected )) ),&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The Control Chart Builder object is called cb1.&amp;nbsp; The radiobox script deletes cb1, and then appends what is returned by the function cbfuntion.&amp;nbsp; The script defining that function is below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;cbfunction=Function({col},
	cb=Control Chart Builder(
						Size( 918, 368 ),
						Show Control Panel( 0 ),
						Show Excluded Region( 0 ),
						Show Limit Summaries( 0 ),
						Show Capability( 0 ),
						Variables( Subgroup( :Date ), Y(col) ),
						Chart(
							Position( 1 ),
							Points( Individual Points( 1 ) ),
							Limits
						),
						Chart( Position( 2 ) ),
						SendToReport(
							Dispatch(
								{},
								"Control Chart Builder",
								FrameBox,
								{DispatchSeg(
									Marker Seg( 1 ),
									{Marker( "Circle" )}
								), DispatchSeg(
									Marker Seg( 2 ),
									{Color( {126, 126, 126} ),
									Marker( "FilledCircle" ), Transparency( 0.8 )}
								)}
							),
							Dispatch(
								{},
								"Control Chart Builder",
								FrameBox( 2 ),
								{DispatchSeg(
									Marker Seg( 1 ),
									{Marker( "Circle" )}
								)}
							)
						)
					);
					
					Return(cb);
			
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Let me know if this makes sense and if you can use it to create the required functionality.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 14:27:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-a-radio-box-to-select-axis-variable-in-dashboard/m-p/236832#M46744</guid>
      <dc:creator>HadleyMyers</dc:creator>
      <dc:date>2019-11-28T14:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using a radio box to select axis variable in dashboard</title>
      <link>https://community.jmp.com/t5/Discussions/Using-a-radio-box-to-select-axis-variable-in-dashboard/m-p/236834#M46746</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I amended the code to include the Distribution object as well.&amp;nbsp; Please take a look and let me know if it helps.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 14:53:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-a-radio-box-to-select-axis-variable-in-dashboard/m-p/236834#M46746</guid>
      <dc:creator>HadleyMyers</dc:creator>
      <dc:date>2019-11-28T14:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using a radio box to select axis variable in dashboard</title>
      <link>https://community.jmp.com/t5/Discussions/Using-a-radio-box-to-select-axis-variable-in-dashboard/m-p/236835#M46747</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/7531"&gt;@HadleyMyers&lt;/a&gt;;, it works perfectly for the two control charts. The process capability plots don't change with the radio button, but I can work out how to do that from your&amp;nbsp;script. I'll upload the final script to the cookbook once I get it working.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 15:00:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-a-radio-box-to-select-axis-variable-in-dashboard/m-p/236835#M46747</guid>
      <dc:creator>ennisbl</dc:creator>
      <dc:date>2019-11-28T15:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using a radio box to select axis variable in dashboard</title>
      <link>https://community.jmp.com/t5/Discussions/Using-a-radio-box-to-select-axis-variable-in-dashboard/m-p/236836#M46748</link>
      <description>&lt;P&gt;Perfect.&amp;nbsp; Please don't hesitate to come back if you get stuck or need any help with the Process Capability plots.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 15:05:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-a-radio-box-to-select-axis-variable-in-dashboard/m-p/236836#M46748</guid>
      <dc:creator>HadleyMyers</dc:creator>
      <dc:date>2019-11-28T15:05:06Z</dc:date>
    </item>
  </channel>
</rss>

