<?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: How do I retrieve a row of data from a table in a display window that has been selected? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-retrieve-a-row-of-data-from-a-table-in-a-display-window/m-p/691466#M87731</link>
    <description>&lt;P&gt;Report from data table is Border box with Table box inside it so you can use that&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1698432515546.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58057iAE0ABC64D2675366/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1698432515546.png" alt="jthi_0-1698432515546.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);

dt = Open("$sample_data\big class.jmp", invisible);
rpt = dt &amp;lt;&amp;lt; select where(Row() &amp;lt; 5) &amp;lt;&amp;lt; get as report;
nw = New Window("test", 
	V List Box(
		Outline Box("Big Class", 
			rpt
		)
	)
);

rpt[Table Box(1)] &amp;lt;&amp;lt; Get Selected Rows;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;after you know the object type you can fairly easily see from scripting index what you can do&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1698432573633.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58058iA3A8E8F26EEC6C80/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1698432573633.png" alt="jthi_1-1698432573633.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;or you could use Show Properties&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Show Properties(rpt[Table Box(1)])&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 27 Oct 2023 18:49:57 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2023-10-27T18:49:57Z</dc:date>
    <item>
      <title>How do I retrieve a row of data from a table in a display window that has been selected?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-retrieve-a-row-of-data-from-a-table-in-a-display-window/m-p/691447#M87730</link>
      <description>&lt;P&gt;I have a window that has a table in it (i.e., the first 5 rows of Big Class.jmp) that I created using the script below and I'd like to know:&lt;/P&gt;&lt;P&gt;1) that a row of the table was selected&lt;/P&gt;&lt;P&gt;2) retrieve the row of data from the table in the window&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After the window has been made, let's assume the user selects a row of the table as shown in the attached image.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: I am using JMP ver 17.1.&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);

dt = open("$sample_data\big class.jmp", invisible);
rpt = dt &amp;lt;&amp;lt; select where(row()&amp;lt;5) &amp;lt;&amp;lt; get as report;
nw = new window("test",
	v list box(
		outline box("Big Class", rpt)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="big class example.jpg" style="width: 270px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58056iBEC2B393E64BFD19/image-size/large?v=v2&amp;amp;px=999" role="button" title="big class example.jpg" alt="big class example.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 18:38:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-retrieve-a-row-of-data-from-a-table-in-a-display-window/m-p/691447#M87730</guid>
      <dc:creator>tbidwell</dc:creator>
      <dc:date>2023-10-27T18:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I retrieve a row of data from a table in a display window that has been selected?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-retrieve-a-row-of-data-from-a-table-in-a-display-window/m-p/691466#M87731</link>
      <description>&lt;P&gt;Report from data table is Border box with Table box inside it so you can use that&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1698432515546.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58057iAE0ABC64D2675366/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1698432515546.png" alt="jthi_0-1698432515546.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);

dt = Open("$sample_data\big class.jmp", invisible);
rpt = dt &amp;lt;&amp;lt; select where(Row() &amp;lt; 5) &amp;lt;&amp;lt; get as report;
nw = New Window("test", 
	V List Box(
		Outline Box("Big Class", 
			rpt
		)
	)
);

rpt[Table Box(1)] &amp;lt;&amp;lt; Get Selected Rows;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;after you know the object type you can fairly easily see from scripting index what you can do&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1698432573633.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58058iA3A8E8F26EEC6C80/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1698432573633.png" alt="jthi_1-1698432573633.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;or you could use Show Properties&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Show Properties(rpt[Table Box(1)])&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Oct 2023 18:49:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-retrieve-a-row-of-data-from-a-table-in-a-display-window/m-p/691466#M87731</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-10-27T18:49:57Z</dc:date>
    </item>
  </channel>
</rss>

