<?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: Trigger JSL by selecting a data point in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Trigger-JSL-by-selecting-a-data-point/m-p/702368#M88673</link>
    <description>&lt;P&gt;1pt /row (the script will use&amp;nbsp; the first selected row and neglect further selections)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the moment we will go for :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Local Data Filter&amp;nbsp; (just generate it, and hide it)&lt;/LI&gt;&lt;LI&gt;Filter Change Handler (to abuse it as local row state handler)&lt;/LI&gt;&lt;LI&gt;check if the &lt;STRONG&gt;ROW&lt;/STRONG&gt; selection was changed - otherwise do nothing.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Nov 2023 19:34:28 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2023-11-23T19:34:28Z</dc:date>
    <item>
      <title>Trigger JSL by selecting a data point</title>
      <link>https://community.jmp.com/t5/Discussions/Trigger-JSL-by-selecting-a-data-point/m-p/702360#M88671</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is the best way to trigger JSL when I select a data point in Graph Builder?&lt;/P&gt;&lt;P&gt;e.g. to update parts of the Dashboard based on the current selection&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is the &lt;FONT face="courier new,courier"&gt;Row State Handler&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;But this is a property of the data table. So the JSL code will even be triggered after the Dashboard got closed.&lt;/P&gt;&lt;P&gt;So, I would have to take care to remove it afterwards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed that a &lt;FONT face="courier new,courier"&gt;Filter Change Handler&lt;/FONT&gt;&amp;nbsp;of a Local Data Filter can act as a row state handler - it will even trigger when the mouse touches a data point.&lt;/P&gt;&lt;P&gt;"Cool" - is this feature "as designed". It seems to be still available in Jmp18 - but I could imagine that it gets disabled at some later point in time:&lt;/P&gt;&lt;P&gt;&lt;LI-MESSAGE title="Improve JMP's state handlers (hover label, row state handler, filter state handler, scheduler, ...)" uid="527992" url="https://community.jmp.com/t5/JMP-Wish-List/Improve-JMP-s-state-handlers-hover-label-row-state-handler/m-p/527992#U527992" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New window("test", Data Filter Context Box(

V List box(tb = Text Box ("hello"),
H list Box(
ldf = dt &amp;lt;&amp;lt;  data filter(local), 
gb = dt &amp;lt;&amp;lt; Graph Builder(
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 1 ) )) )
)))));


i=1;
f = Function( {a}, Print( tb &amp;lt;&amp;lt; set text(Char(i++)) ) );

rs = ldf  &amp;lt;&amp;lt; Make Filter Change Handler( f );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Nov 2023 19:01:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Trigger-JSL-by-selecting-a-data-point/m-p/702360#M88671</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-11-23T19:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger JSL by selecting a data point</title>
      <link>https://community.jmp.com/t5/Discussions/Trigger-JSL-by-selecting-a-data-point/m-p/702365#M88672</link>
      <description>&lt;P&gt;I would say it depends what you wish to do with the data point selection, how many data points (or rather rows) might be selected at the same time and possibly other things.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 19:19:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Trigger-JSL-by-selecting-a-data-point/m-p/702365#M88672</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-11-23T19:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger JSL by selecting a data point</title>
      <link>https://community.jmp.com/t5/Discussions/Trigger-JSL-by-selecting-a-data-point/m-p/702368#M88673</link>
      <description>&lt;P&gt;1pt /row (the script will use&amp;nbsp; the first selected row and neglect further selections)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the moment we will go for :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Local Data Filter&amp;nbsp; (just generate it, and hide it)&lt;/LI&gt;&lt;LI&gt;Filter Change Handler (to abuse it as local row state handler)&lt;/LI&gt;&lt;LI&gt;check if the &lt;STRONG&gt;ROW&lt;/STRONG&gt; selection was changed - otherwise do nothing.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 19:34:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Trigger-JSL-by-selecting-a-data-point/m-p/702368#M88673</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-11-23T19:34:28Z</dc:date>
    </item>
  </channel>
</rss>

