<?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: Display number of selected rows in the new window in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Display-number-of-selected-rows-in-the-new-window/m-p/519852#M74585</link>
    <description>&lt;P&gt;Because I am creating a UI with modal window and the open data table in invisible to the user&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jul 2022 18:45:43 GMT</pubDate>
    <dc:creator>Jackie_</dc:creator>
    <dc:date>2022-07-11T18:45:43Z</dc:date>
    <item>
      <title>Display number of selected rows in the new window</title>
      <link>https://community.jmp.com/t5/Discussions/Display-number-of-selected-rows-in-the-new-window/m-p/519519#M74551</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to display number of selected rows in the modal window. Highlighting rows in the graph builder plot and displaying number of selected rows in the text edit box. Are there any options?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jacksmith12_0-1657505745459.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43838i3A286BDA09795331/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jacksmith12_0-1657505745459.png" alt="Jacksmith12_0-1657505745459.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

// Open Data Table
dt = Open( "$SAMPLE_DATA/Growth Measurements.jmp", invisible );



New window("", Modal,
tb = Textbox("Rows selected"), text editbox(""),

Vlistbox(
gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 522, 452 ),
	Show Control Panel( 0 ),
	Legend Position( "Bottom" ),
	Graph Spacing( 8 ),
	Variables( X( :Age ), Y( :Growth ),Group X( :Growth ), Overlay( :Subject ) ),
	Elements( Line( X, Y, Legend( 13 ) ) )
);));

&lt;/CODE&gt;&lt;/PRE&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;</description>
      <pubDate>Fri, 09 Jun 2023 17:03:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Display-number-of-selected-rows-in-the-new-window/m-p/519519#M74551</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2023-06-09T17:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Display number of selected rows in the new window</title>
      <link>https://community.jmp.com/t5/Discussions/Display-number-of-selected-rows-in-the-new-window/m-p/519526#M74552</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
// Open Data Table
dt = Open( "$SAMPLE_DATA/Growth Measurements.jmp", invisible );

f = Function( {a}, teb&amp;lt;&amp;lt;settext(char(nitems(dt&amp;lt;&amp;lt;getselectedrows)) ));
rs = dt &amp;lt;&amp;lt; make row state handler( f );

New window("", Modal, &amp;lt;&amp;lt;onclose(rs=0;1),
tb = Textbox("Rows selected"),teb= text editbox(""),

Vlistbox(
gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 522, 452 ),
	Show Control Panel( 0 ),
	Legend Position( "Bottom" ),
	Graph Spacing( 8 ),
	Variables( X( :Age ), Y( :Growth ),Group X( :Growth ), Overlay( :Subject ) ),
	Elements( Line( X, Y, Legend( 13 ) ) )
);));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The onclose script clears the handler when the window is closed so it won't make log messages about the missing TextEditBox, AND it returns 1, which allows the window to close.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 03:22:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Display-number-of-selected-rows-in-the-new-window/m-p/519526#M74552</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2022-07-11T03:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Display number of selected rows in the new window</title>
      <link>https://community.jmp.com/t5/Discussions/Display-number-of-selected-rows-in-the-new-window/m-p/519785#M74579</link>
      <description>&lt;P&gt;I just want to be sure that you are aware that the row state status is displayed automatically in the Rows panel at the lower left of the Data Table. It isn't clear to me that you want a custom status.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 16:53:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Display-number-of-selected-rows-in-the-new-window/m-p/519785#M74579</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2022-07-11T16:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Display number of selected rows in the new window</title>
      <link>https://community.jmp.com/t5/Discussions/Display-number-of-selected-rows-in-the-new-window/m-p/519852#M74585</link>
      <description>&lt;P&gt;Because I am creating a UI with modal window and the open data table in invisible to the user&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 18:45:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Display-number-of-selected-rows-in-the-new-window/m-p/519852#M74585</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2022-07-11T18:45:43Z</dc:date>
    </item>
  </channel>
</rss>

