<?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: Row State Handler stops firing after the first selection - how do I keep it persistent? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Row-State-Handler-stops-firing-after-the-first-selection-how-do/m-p/952975#M109973</link>
    <description>&lt;P&gt;No good ideas quickly come to my mind when using bivariate + by + stacked data table.&lt;/P&gt;
&lt;P&gt;Using split (wide) format table would be the best option. If you can use Graph Builder for the plot, it can be used with a formula to do something like this using overlay/color (it won't select the rows).&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jun 2026 17:38:31 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2026-06-09T17:38:31Z</dc:date>
    <item>
      <title>Row State Handler stops firing after the first selection - how do I keep it persistent?</title>
      <link>https://community.jmp.com/t5/Discussions/Row-State-Handler-stops-firing-after-the-first-selection-how-do/m-p/952926#M109968</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm building linked selection across a set of &lt;/SPAN&gt;&lt;SPAN&gt;By&lt;/SPAN&gt;&lt;SPAN&gt;-group Bivariate plots. The plots come from a long-format table (one row per ID per Mode):&lt;/SPAN&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&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;dt &amp;lt;&amp;lt; Bivariate(
&amp;nbsp; &amp;nbsp; &amp;nbsp; Y( dt:Y ),
&amp;nbsp; &amp;nbsp; &amp;nbsp; X( dt:X ),
&amp;nbsp; &amp;nbsp; &amp;nbsp; By( :MODE )
&amp;nbsp; );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;BR /&gt;What I want:&lt;/STRONG&gt; when I click a point in one of the &lt;/SPAN&gt;&lt;SPAN&gt;By&lt;/SPAN&gt;&lt;SPAN&gt;-group graphs, I want every point in the &lt;I&gt;other&lt;/I&gt; graphs that shares the same &lt;/SPAN&gt;&lt;SPAN&gt;:ID&lt;/SPAN&gt;&lt;SPAN&gt; to also become selected. I'd like to do this &lt;STRONG&gt;without&lt;/STRONG&gt; reshaping the table to wide format (one row per ID).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;What I tried:&lt;/STRONG&gt; I found that a row state handler can re-select all rows for the matching IDs. My current implementation:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;f = Function( {row},
&amp;nbsp; &amp;nbsp; &amp;nbsp; rows&amp;nbsp; = dt &amp;lt;&amp;lt; Get Selected Rows;
&amp;nbsp; &amp;nbsp; &amp;nbsp; units = Associative Array( dt:ID[rows] ) &amp;lt;&amp;lt; Get Keys;
&amp;nbsp; &amp;nbsp; &amp;nbsp; dt &amp;lt;&amp;lt; Select Where( Contains( units, :ID ) );
);
rs = dt &amp;lt;&amp;lt; Make Row State Handler( f );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;The problem:&lt;/STRONG&gt; this works for the &lt;I&gt;first&lt;/I&gt; selection only in the data table. After that the handler behaves as if it no longer exists.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;My questions:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;1. Why does the row state handler stop firing after the first selection? (I'm wondering whether changing row states &lt;I&gt;inside&lt;/I&gt; the handler is what's tearing it down.)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;2. Is there a way to fix this so the handler stays active across repeated selections?&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;3. Are there better approaches to ID-linked selection across &lt;/SPAN&gt;&lt;SPAN&gt;By&lt;/SPAN&gt;&lt;SPAN&gt;-group plots that I should consider instead?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2026 10:46:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Row-State-Handler-stops-firing-after-the-first-selection-how-do/m-p/952926#M109968</guid>
      <dc:creator>shuey</dc:creator>
      <dc:date>2026-06-09T10:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Row State Handler stops firing after the first selection - how do I keep it persistent?</title>
      <link>https://community.jmp.com/t5/Discussions/Row-State-Handler-stops-firing-after-the-first-selection-how-do/m-p/952936#M109969</link>
      <description>&lt;P&gt;You are most likely getting a message to log which kinda tells you what is going on&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Loop detected earlier&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and sometimes more helpful one&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Row State Handler is in a loop

Row States should not be changed by Row State Handler.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Jun 2026 11:05:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Row-State-Handler-stops-firing-after-the-first-selection-how-do/m-p/952936#M109969</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-06-09T11:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Row State Handler stops firing after the first selection - how do I keep it persistent?</title>
      <link>https://community.jmp.com/t5/Discussions/Row-State-Handler-stops-firing-after-the-first-selection-how-do/m-p/952941#M109970</link>
      <description>&lt;P&gt;Yes, I'm getting the message&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Loop detected earlier&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;is there a better way to approach this problem?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2026 11:17:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Row-State-Handler-stops-firing-after-the-first-selection-how-do/m-p/952941#M109970</guid>
      <dc:creator>shuey</dc:creator>
      <dc:date>2026-06-09T11:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Row State Handler stops firing after the first selection - how do I keep it persistent?</title>
      <link>https://community.jmp.com/t5/Discussions/Row-State-Handler-stops-firing-after-the-first-selection-how-do/m-p/952975#M109973</link>
      <description>&lt;P&gt;No good ideas quickly come to my mind when using bivariate + by + stacked data table.&lt;/P&gt;
&lt;P&gt;Using split (wide) format table would be the best option. If you can use Graph Builder for the plot, it can be used with a formula to do something like this using overlay/color (it won't select the rows).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2026 17:38:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Row-State-Handler-stops-firing-after-the-first-selection-how-do/m-p/952975#M109973</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-06-09T17:38:31Z</dc:date>
    </item>
  </channel>
</rss>

