<?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: Why is this code selecting the top level outline box and not the requested one? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Why-is-this-code-selecting-the-top-level-outline-box-and-not-the/m-p/809549#M99033</link>
    <description>&lt;P&gt;Great Video, thanks for the link!&lt;/P&gt;</description>
    <pubDate>Mon, 04 Nov 2024 13:12:23 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2024-11-04T13:12:23Z</dc:date>
    <item>
      <title>Why is this code selecting the top level outline box and not the requested one?</title>
      <link>https://community.jmp.com/t5/Discussions/Why-is-this-code-selecting-the-top-level-outline-box-and-not-the/m-p/809498#M99005</link>
      <description>&lt;P&gt;I was playing along with a Discovery Summit video on interacting with Report layer objects and came to a crashing halt on my very first example I tired.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here I am trying to select the Correlation outline box but this ends up selecting the entire Multivariate analysis.&amp;nbsp; I've tried a couple of different approaches and can't get it work out so humbling asking for some input!&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=Open( "$SAMPLE_DATA/Big Class.jmp" );


dt&amp;lt;&amp;lt;Multivariate(
	Y( :height, :weight ),
	Variance Estimation( "Row-wise" ),
	Scatterplot Matrix( 1 )
);

obj=Current Report()["Multivariate"]&amp;lt;&amp;lt; get scriptable object;

obj&amp;lt;&amp;lt; XPath("//OutlineBox[text()='Correlations']")&amp;lt;&amp;lt;select;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Want this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shampton82_1-1730578283914.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69756i0C701CF9E5940FD3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shampton82_1-1730578283914.png" alt="shampton82_1-1730578283914.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Getting this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shampton82_0-1730578267391.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69755iE29DE7342EA562E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shampton82_0-1730578267391.png" alt="shampton82_0-1730578267391.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2024 20:12:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Why-is-this-code-selecting-the-top-level-outline-box-and-not-the/m-p/809498#M99005</guid>
      <dc:creator>shampton82</dc:creator>
      <dc:date>2024-11-02T20:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why is this code selecting the top level outline box and not the requested one?</title>
      <link>https://community.jmp.com/t5/Discussions/Why-is-this-code-selecting-the-top-level-outline-box-and-not-the/m-p/809499#M99006</link>
      <description>&lt;P&gt;You got it right, but your attempt to double-check was misleading : )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To select the outline boxes which are returned by the &lt;FONT face="courier new,courier"&gt;Xpath&lt;/FONT&gt; command, use:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;(obj&amp;lt;&amp;lt; XPath("//OutlineBox[text()='Correlations']"))&amp;lt;&amp;lt;select;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without the&amp;nbsp; additional brackets, you will send the &lt;FONT face="courier new,courier"&gt;select&lt;/FONT&gt;&amp;nbsp;command to obj.&lt;BR /&gt;like in&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Data Table( "Height" ) &amp;lt;&amp;lt; Clear Select &amp;lt;&amp;lt; Select Rows( [4] ) &amp;lt;&amp;lt; Delete Rows;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2024 21:31:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Why-is-this-code-selecting-the-top-level-outline-box-and-not-the/m-p/809499#M99006</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-11-02T21:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why is this code selecting the top level outline box and not the requested one?</title>
      <link>https://community.jmp.com/t5/Discussions/Why-is-this-code-selecting-the-top-level-outline-box-and-not-the/m-p/809502#M99007</link>
      <description>&lt;P&gt;Oh I was so close!!&amp;nbsp; Thanks for the assist&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;, that was going to drive me crazy.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Back to the video now&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Abstracts/I-Can-See-It-How-Do-I-Get-It/ev-p/776041" target="_blank"&gt;I Can See It. How Do I Get It? - JMP User Community&lt;/A&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;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2024 21:15:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Why-is-this-code-selecting-the-top-level-outline-box-and-not-the/m-p/809502#M99007</guid>
      <dc:creator>shampton82</dc:creator>
      <dc:date>2024-11-02T21:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why is this code selecting the top level outline box and not the requested one?</title>
      <link>https://community.jmp.com/t5/Discussions/Why-is-this-code-selecting-the-top-level-outline-box-and-not-the/m-p/809549#M99033</link>
      <description>&lt;P&gt;Great Video, thanks for the link!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 13:12:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Why-is-this-code-selecting-the-top-level-outline-box-and-not-the/m-p/809549#M99033</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-11-04T13:12:23Z</dc:date>
    </item>
  </channel>
</rss>

