<?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: action when selected in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/action-when-selected/m-p/64837#M34259</link>
    <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;I tried to use the example in the Scripting Index but it seems to work only when I choose a filter,&lt;BR /&gt;I want it to work when I choose one or more dots on the graph.&lt;BR /&gt;is it possible?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jul 2018 11:09:03 GMT</pubDate>
    <dc:creator>shiro</dc:creator>
    <dc:date>2018-07-30T11:09:03Z</dc:date>
    <item>
      <title>action when selected</title>
      <link>https://community.jmp.com/t5/Discussions/action-when-selected/m-p/60442#M32936</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I want to know if it is possible to call a function or an action&amp;nbsp; when rows are selected in the data table.&lt;/P&gt;&lt;P&gt;for example- when the user push a button it will lead to other actions to happen,&amp;nbsp;I want it to happen when to user select a value in a Bivariate chart.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the help.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 08:33:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/action-when-selected/m-p/60442#M32936</guid>
      <dc:creator>shiro</dc:creator>
      <dc:date>2018-06-18T08:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: action when selected</title>
      <link>https://community.jmp.com/t5/Discussions/action-when-selected/m-p/60461#M32939</link>
      <description>&lt;P&gt;Yes you can.&amp;nbsp; You can set a "Row State Handler" that will be triggered anytime something is changed in the "Row State" column of the data table, such as selection, or setting a color, or excluding....etc.&lt;/P&gt;
&lt;P&gt;See the Scripting Index for an example of how to use "Make Row State Handler"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Scripting Index==&amp;gt;Data Table==&amp;gt;Make Row State Handler&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 11:24:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/action-when-selected/m-p/60461#M32939</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-06-18T11:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: action when selected</title>
      <link>https://community.jmp.com/t5/Discussions/action-when-selected/m-p/64837#M34259</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;I tried to use the example in the Scripting Index but it seems to work only when I choose a filter,&lt;BR /&gt;I want it to work when I choose one or more dots on the graph.&lt;BR /&gt;is it possible?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 11:09:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/action-when-selected/m-p/64837#M34259</guid>
      <dc:creator>shiro</dc:creator>
      <dc:date>2018-07-30T11:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: action when selected</title>
      <link>https://community.jmp.com/t5/Discussions/action-when-selected/m-p/64846#M34260</link>
      <description>&lt;P&gt;When a value is selected in a graph that is displaying individual data points, JMP's default action is to set the row(s) in the data table that for that data point to have a Row State value of Selected.&amp;nbsp; If a Row Stat Handler has been applied to the data table, using a Make Row State Handler() function, then the above change in the Row State for a column will trigger the function referenced in the Make Row State Handler.&lt;/P&gt;
&lt;P&gt;Here is an obsurd example to illustrate how it works.&amp;nbsp;It opens up the Big Class data table, and displayes a Bivariate Plot.&amp;nbsp; If you select a data point in the displayed graph, a new data table will be created.&amp;nbsp; The new data table will contain the data from the row the selected data point is from.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
f = Function( {a},
	If( N Rows( dt &amp;lt;&amp;lt; get selected rows ) &amp;gt; 0,
		dt &amp;lt;&amp;lt; subset( selected rows( 1 ), selected columns( 0 ) );
		Current Data Table( dt );
		dt &amp;lt;&amp;lt; bring to front;
	)
);
rs = dt &amp;lt;&amp;lt; make row state handler( f );

biv = dt &amp;lt;&amp;lt; Bivariate( Y( :height ), X( :weight ) );
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Jul 2018 12:05:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/action-when-selected/m-p/64846#M34260</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-07-30T12:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: action when selected</title>
      <link>https://community.jmp.com/t5/Discussions/action-when-selected/m-p/72477#M35623</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;it works&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 06:08:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/action-when-selected/m-p/72477#M35623</guid>
      <dc:creator>shiro</dc:creator>
      <dc:date>2018-09-13T06:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: action when selected</title>
      <link>https://community.jmp.com/t5/Discussions/action-when-selected/m-p/351126#M60079</link>
      <description>&lt;P&gt;this is close to what I was looking for...to select data from one chart to generate another chart based on the rows selected. However, if I select a number of data points, say in a region of the chart, the code generates multiple subset windows.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would quickly end up with lots of data tables open, especially with a large data set. Is there a way of preventing this happening?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 17:53:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/action-when-selected/m-p/351126#M60079</guid>
      <dc:creator>spudton</dc:creator>
      <dc:date>2021-01-20T17:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: action when selected</title>
      <link>https://community.jmp.com/t5/Discussions/action-when-selected/m-p/351130#M60080</link>
      <description>&lt;P&gt;Your specified need may be handled by using a Data Filter on the data table.&amp;nbsp; You can have multiple graphs being displayed, of different types, and when the filter is applied it will change the displays in all graphs based upon the data table.&lt;/P&gt;
&lt;P&gt;Or.....it would be a fairly simple matter, to add to your primary graph a button that when clicked, would create a new data table and chart.&amp;nbsp; And, an On Close() option could be placed on the graph, that when the graph is closed, it would delete the data table that was created for it.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 18:15:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/action-when-selected/m-p/351130#M60080</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-01-20T18:15:24Z</dc:date>
    </item>
  </channel>
</rss>

