<?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: Filling Comment into rows by selected row state from scatterplot in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Filling-Comment-into-rows-by-selected-row-state-from-scatterplot/m-p/886892#M104932</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/8417"&gt;@mlo1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I opted to avoid looking for state and just grabbing the currently selected rows then using the positions to fill in the column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=current data table();
selected=dt&amp;lt;&amp;lt;get selected rows; //grab the selected rows

column(dt,"Step")[selected]="Process 1";//replace&amp;nbsp;the&amp;nbsp;selected&amp;nbsp;rows&amp;nbsp;with&amp;nbsp;"Process&amp;nbsp;1"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Ben&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jul 2025 12:25:54 GMT</pubDate>
    <dc:creator>Ben_BarrIngh</dc:creator>
    <dc:date>2025-07-15T12:25:54Z</dc:date>
    <item>
      <title>Filling Comment into rows by selected row state from scatterplot</title>
      <link>https://community.jmp.com/t5/Discussions/Filling-Comment-into-rows-by-selected-row-state-from-scatterplot/m-p/886882#M104931</link>
      <description>&lt;P&gt;I like to avoid the way using the menu Rows -&amp;gt; Row Selection -&amp;gt; Name selection in column&lt;BR /&gt;I rather like&amp;nbsp; to put a comment into rows selected by mouse from a scatterplot via script.&lt;BR /&gt;The following does not write the text&amp;nbsp; to the column and does not give an error in the log.&lt;BR /&gt;How is the correct syntax? I am using JMP18&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();


//Select data point in graph
// Use column Step do comment the Process steps

// Write the value into all selected rows
For Each Row(
    If( Row State() == 1,  // 1 = selected
        :Step = "Process1"
    )
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Jul 2025 12:17:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Filling-Comment-into-rows-by-selected-row-state-from-scatterplot/m-p/886882#M104931</guid>
      <dc:creator>mlo1</dc:creator>
      <dc:date>2025-07-15T12:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Filling Comment into rows by selected row state from scatterplot</title>
      <link>https://community.jmp.com/t5/Discussions/Filling-Comment-into-rows-by-selected-row-state-from-scatterplot/m-p/886892#M104932</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/8417"&gt;@mlo1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I opted to avoid looking for state and just grabbing the currently selected rows then using the positions to fill in the column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=current data table();
selected=dt&amp;lt;&amp;lt;get selected rows; //grab the selected rows

column(dt,"Step")[selected]="Process 1";//replace&amp;nbsp;the&amp;nbsp;selected&amp;nbsp;rows&amp;nbsp;with&amp;nbsp;"Process&amp;nbsp;1"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2025 12:25:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Filling-Comment-into-rows-by-selected-row-state-from-scatterplot/m-p/886892#M104932</guid>
      <dc:creator>Ben_BarrIngh</dc:creator>
      <dc:date>2025-07-15T12:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Filling Comment into rows by selected row state from scatterplot</title>
      <link>https://community.jmp.com/t5/Discussions/Filling-Comment-into-rows-by-selected-row-state-from-scatterplot/m-p/886896#M104933</link>
      <description>&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2025 12:46:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Filling-Comment-into-rows-by-selected-row-state-from-scatterplot/m-p/886896#M104933</guid>
      <dc:creator>mlo1</dc:creator>
      <dc:date>2025-07-15T12:46:05Z</dc:date>
    </item>
  </channel>
</rss>

