<?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: Drive table variable with slider? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Drive-table-variable-with-slider/m-p/808105#M98752</link>
    <description>&lt;P&gt;Easiest way is to utilize New Window() and add both graph builder and the sliderbox inside that.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Oct 2024 03:50:46 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-10-25T03:50:46Z</dc:date>
    <item>
      <title>Drive table variable with slider?</title>
      <link>https://community.jmp.com/t5/Discussions/Drive-table-variable-with-slider/m-p/807885#M98731</link>
      <description>&lt;P&gt;Is there any way to drive a table variable with a slider?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E.g. suppose I have this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "TableVariableSliderExample",
	Add Rows( 100 ),
	New Table Variable( "scaleFactor", 1.5 ),
	New Column( "x",
		Numeric,
		"Continuous",
		Set Values(
			[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
			21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38,
			39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56,
			57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
			75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92,
			93, 94, 95, 96, 97, 98, 99, 100]
		)
	),
	New Column( "Sin",
		Numeric,
		"Continuous",
		Formula( Sin( (:scaleFactor * :x * 6.28) / 100 ) ),
	)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;... is there any way to create a slider that will modify :scaleFactor and cause the data and any associated plots to live-update?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 23:08:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Drive-table-variable-with-slider/m-p/807885#M98731</guid>
      <dc:creator>BHarris</dc:creator>
      <dc:date>2024-10-23T23:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Drive table variable with slider?</title>
      <link>https://community.jmp.com/t5/Discussions/Drive-table-variable-with-slider/m-p/807897#M98732</link>
      <description>&lt;P&gt;You can have slider in separate window (the slider window creation could be stored to table script for example)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = New Table("TableVariableSliderExample",
	Add Rows(100),
	New Table Variable("scaleFactor", 1.5),
	New Column("x",
		Numeric,
		"Continuous",
		Set Values(
			[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
			24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
			45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65,
			66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86,
			87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100]
		)
	),
	New Column("Sin", Numeric, "Continuous", Formula(Sin((:scaleFactor * :x * 6.28) / 100)), )
);


sliderValue = dt &amp;lt;&amp;lt; Get Table Variable("scaleFactor");
New Window("Example",
	Panel Box("Slider Box",
		sb = Slider Box(0, 10, sliderValue, 
			dt &amp;lt;&amp;lt; Set Table Variable("scaleFactor", sliderValue)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or in some cases you might want to build UI which contains the slider AND datatable.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 04:06:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Drive-table-variable-with-slider/m-p/807897#M98732</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-10-24T04:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Drive table variable with slider?</title>
      <link>https://community.jmp.com/t5/Discussions/Drive-table-variable-with-slider/m-p/808096#M98748</link>
      <description>&lt;P&gt;This is awesome, I didn't realize JMP was capable of this.&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just a random follow-on question -- is it possible to draw that slider bar inside of the Graph Builder window?&amp;nbsp; Or does it have to live in its own window?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 20:39:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Drive-table-variable-with-slider/m-p/808096#M98748</guid>
      <dc:creator>BHarris</dc:creator>
      <dc:date>2024-10-24T20:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Drive table variable with slider?</title>
      <link>https://community.jmp.com/t5/Discussions/Drive-table-variable-with-slider/m-p/808105#M98752</link>
      <description>&lt;P&gt;Easiest way is to utilize New Window() and add both graph builder and the sliderbox inside that.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 03:50:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Drive-table-variable-with-slider/m-p/808105#M98752</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-10-25T03:50:46Z</dc:date>
    </item>
  </channel>
</rss>

