<?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 to find the reference to an object in a platform using the tree structure? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-find-the-reference-to-an-object-in-a-platform-using-the/m-p/568665#M77930</link>
    <description>&lt;P&gt;&lt;U&gt;another Trick:&lt;/U&gt;&lt;BR /&gt;Generate the XML code for the &lt;STRONG&gt;&lt;EM&gt;current report &lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;(not just the report of the object; think about data filters etc.)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I linked the code below to a Keyboard shortcut - and now I can get the XML code for any report that I want.&lt;/P&gt;&lt;P&gt;Just select the report and press (e.g.)&amp;nbsp;&lt;STRONG&gt;CTRL - Alt + X :)&lt;/img&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Local({myTitle= Current Report()&amp;lt;&amp;lt; get Window Title() || " - (xml)"},
New Window (myTitle ,&amp;lt;&amp;lt;Type( "Script" ),Current Report()&amp;lt;&amp;lt; Get XML))&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 01 Jun 2024 08:02:59 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2024-06-01T08:02:59Z</dc:date>
    <item>
      <title>How to find the reference to an object in a platform using the tree structure?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-the-reference-to-an-object-in-a-platform-using-the/m-p/563529#M77639</link>
      <description>&lt;P&gt;Hi, I've been trying to use references to objects in analysis platforms (graphs, tables, etc) in scripts, but in my opinion it's not very intuitive from the examples I've seen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have multiple use cases, but I'm hoping to find a generic description or manual on how to find the reference to any object in an analysis platform. I'm guessing it exists somewhere on this site but I have not been able to find it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:01:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-the-reference-to-an-object-in-a-platform-using-the/m-p/563529#M77639</guid>
      <dc:creator>mvanderaa1</dc:creator>
      <dc:date>2023-06-09T16:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the reference to an object in a platform using the tree structure?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-the-reference-to-an-object-in-a-platform-using-the/m-p/563556#M77641</link>
      <description>&lt;P&gt;In my opinion there is no generic solution for this as there are so many different platforms in JMP and some of them do behave differently than others. My general approach is to take a look at the XML with &lt;EM&gt;&amp;lt;&amp;lt; Get XML&lt;/EM&gt; and then use XPath (XPath is also nice as it works outside of JSL) with some combination of &lt;EM&gt;&amp;lt;&amp;lt; sib, &amp;lt;&amp;lt; child, &amp;lt;&amp;lt;parent.... &lt;/EM&gt; If it is a very simple case then I might use report subscripting &lt;A href="https://www.jmp.com/support/help/en/16.2/index.shtml#page/jmp/display-box-object-references.shtml" target="_blank" rel="noopener"&gt; Scripting Guide &amp;gt; Display Trees &amp;gt; Navigate JMP Reports &amp;gt; Display Box Object References&lt;/A&gt; . &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below are some links:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;LI-MESSAGE title="Navigating your reports using XPath" uid="219099" url="https://community.jmp.com/t5/JMPer-Cable/Navigating-your-reports-using-XPath/m-p/219099#U219099" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;LI-MESSAGE title="JMP Discovery 2015 - Mining JMP Reports - v10.pdf" uid="22595" url="https://community.jmp.com/t5/Discovery-Summit-2015/JMP-Discovery-2015-Mining-JMP-Reports-v10-pdf/m-p/22595#U22595" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;&lt;LI-MESSAGE title="Steal This Code! Three Upgrades for Scripts Obtained from the Enhanced Log (2021-US-45MP-870)" uid="398700" url="https://community.jmp.com/t5/Discovery-Summit-Americas-2021/Steal-This-Code-Three-Upgrades-for-Scripts-Obtained-from-the/m-p/398700#U398700" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt; , Technique 2&amp;nbsp; starting at 20:30&lt;/LI&gt;
&lt;LI&gt;JMP17 is also supposed to have "&lt;EM&gt;Automatically create Display Box paths for report scraping via JSL&lt;/EM&gt;" haven't used this as I have no access to JMP17. Also no idea how generic paths this will create.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 02 Nov 2022 16:07:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-the-reference-to-an-object-in-a-platform-using-the/m-p/563556#M77641</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-11-02T16:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the reference to an object in a platform using the tree structure?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-the-reference-to-an-object-in-a-platform-using-the/m-p/564160#M77671</link>
      <description>&lt;P&gt;Thanks, this is pretty much what I was looking for. I remember the "Steal this code" presentation but I also couldn't find it anymore.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will accept this as a solution, although I still feel this subject deserves a more concise explanation on JMP learning and/or the scripting Index within JMP so that users know where to start.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 11:00:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-the-reference-to-an-object-in-a-platform-using-the/m-p/564160#M77671</guid>
      <dc:creator>mvanderaa1</dc:creator>
      <dc:date>2022-11-03T11:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the reference to an object in a platform using the tree structure?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-the-reference-to-an-object-in-a-platform-using-the/m-p/564236#M77675</link>
      <description>&lt;P&gt;Looking at the XPath examples I realized many of my problems arise when I use a "group by" variable in the platform.&lt;/P&gt;&lt;P&gt;Taking the example I find in the XPath link:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This script works fine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// not grouped by sex
dt = Open(   "$SAMPLE_DATA\Big Class.jmp" );
ow = dt &amp;lt;&amp;lt; Oneway(
	Y( :height ),
	X( :age ),
	Means and Std Dev( 1 ),
	Mean Error Bars( 1 ),
	Std Dev Lines( 1 ),
	Mean of Means( 1 )
);

testXML = Report (ow) &amp;lt;&amp;lt; Get XML;
Write( testXML );

/* Return a list of NumberColBox references */
ncbList = Report( ow )["Means and Std Deviations"] &amp;lt;&amp;lt; XPath( "//NumberColBox" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If I group by sex however, get XML already throws an error. How to handle this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// group by sex
dt = Open(   "$SAMPLE_DATA\Big Class.jmp" );
ow = dt &amp;lt;&amp;lt; Oneway(
	Y( :height ),
	X( :age ),
	By( :sex ),
	Means and Std Dev( 1 ),
	Mean Error Bars( 1 ),
	Std Dev Lines( 1 ),
	Mean of Means( 1 )
);

// get XML fails for this platform
testXML = Report (ow) &amp;lt;&amp;lt; Get XML;
Write( testXML );

/* Return a list of NumberColBox references */
ncbList = Report( ow )[???]["Means and Std Deviations"] &amp;lt;&amp;lt; XPath( "//NumberColBox" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Nov 2022 12:44:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-the-reference-to-an-object-in-a-platform-using-the/m-p/564236#M77675</guid>
      <dc:creator>mvanderaa1</dc:creator>
      <dc:date>2022-11-03T12:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the reference to an object in a platform using the tree structure?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-the-reference-to-an-object-in-a-platform-using-the/m-p/564297#M77680</link>
      <description>&lt;P&gt;When you use a By() you get the message returns a list of platforms, not a single platform.&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" );
ow = dt &amp;lt;&amp;lt; Oneway(
	Y( :height ),
	X( :age ),
	Means and Std Dev( 1 ),
	Mean Error Bars( 1 ),
	Std Dev Lines( 1 ),
	Mean of Means( 1 )
);

Show( ow );

dt = Open( "$SAMPLE_DATA\Big Class.jmp" );
ow_by = dt &amp;lt;&amp;lt; Oneway(
	Y( :height ),
	X( :age ),
	By( :sex ),
	Means and Std Dev( 1 ),
	Mean Error Bars( 1 ),
	Std Dev Lines( 1 ),
	Mean of Means( 1 )
);

Show( ow_by );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Log:&lt;/P&gt;
&lt;PRE&gt;/*:

ow = Oneway[];
ow_by = {Oneway[], Oneway[]};&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Nov 2022 14:24:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-the-reference-to-an-object-in-a-platform-using-the/m-p/564297#M77680</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2022-11-03T14:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the reference to an object in a platform using the tree structure?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-the-reference-to-an-object-in-a-platform-using-the/m-p/564327#M77683</link>
      <description>&lt;P&gt;You could try wrapping Oneway with New Window&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

// group by sex
dt = Open("$SAMPLE_DATA\Big Class.jmp");
nw = New Window("", ow = dt &amp;lt;&amp;lt; Oneway(Y(:height), X(:age), By(:sex), Means and Std Dev(1), Mean Error Bars(1), Std Dev Lines(1), Mean of Means(1)));

// get XML fails for this platform
testXML = nw &amp;lt;&amp;lt; Get XML;
Write(testXML);

ncbList = nw &amp;lt;&amp;lt; XPath("\[//OutlineBox[text()="Means and Std Deviations"]//NumberColBox]\");
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Nov 2022 16:39:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-the-reference-to-an-object-in-a-platform-using-the/m-p/564327#M77683</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-11-03T16:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the reference to an object in a platform using the tree structure?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-the-reference-to-an-object-in-a-platform-using-the/m-p/564349#M77687</link>
      <description>&lt;P&gt;As Jarmo indicated in his first reply, in JMP17 it got a bit easier now to get the correct XPath for an object:&lt;/P&gt;&lt;P&gt;Right click on the object, click on &lt;STRONG&gt;Show Properties&lt;/STRONG&gt; (... adjust the selection if needed) and click on&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1667501045793.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/46869iAF254F186B6F9D59/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1667501045793.png" alt="hogi_1-1667501045793.png" /&gt;&lt;/span&gt;&amp;nbsp;in the Box Path menu on the right:&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="hogi_0-1667501023107.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/46868i86AAC1EFEF916263/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1667501023107.png" alt="hogi_0-1667501023107.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 18:46:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-the-reference-to-an-object-in-a-platform-using-the/m-p/564349#M77687</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2022-11-03T18:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the reference to an object in a platform using the tree structure?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-the-reference-to-an-object-in-a-platform-using-the/m-p/568665#M77930</link>
      <description>&lt;P&gt;&lt;U&gt;another Trick:&lt;/U&gt;&lt;BR /&gt;Generate the XML code for the &lt;STRONG&gt;&lt;EM&gt;current report &lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;(not just the report of the object; think about data filters etc.)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I linked the code below to a Keyboard shortcut - and now I can get the XML code for any report that I want.&lt;/P&gt;&lt;P&gt;Just select the report and press (e.g.)&amp;nbsp;&lt;STRONG&gt;CTRL - Alt + X :)&lt;/img&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Local({myTitle= Current Report()&amp;lt;&amp;lt; get Window Title() || " - (xml)"},
New Window (myTitle ,&amp;lt;&amp;lt;Type( "Script" ),Current Report()&amp;lt;&amp;lt; Get XML))&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Jun 2024 08:02:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-the-reference-to-an-object-in-a-platform-using-the/m-p/568665#M77930</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-06-01T08:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the reference to an object in a platform using the tree structure?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-the-reference-to-an-object-in-a-platform-using-the/m-p/569165#M77973</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;EM&gt;as I have no access to JMP17.&amp;nbsp;&lt;/EM&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;really?&lt;/P&gt;&lt;P&gt;I would have guessed that &lt;EM&gt;&lt;STRONG&gt;you&lt;/STRONG&gt; &lt;/EM&gt;get your special, personal, free JMP Pro signature editon the first day a new version comes out&lt;/P&gt;&lt;P&gt;... to support you as much as possible in supporting others :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 16:19:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-the-reference-to-an-object-in-a-platform-using-the/m-p/569165#M77973</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2022-11-14T16:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the reference to an object in a platform using the tree structure?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-the-reference-to-an-object-in-a-platform-using-the/m-p/569231#M77983</link>
      <description>&lt;P&gt;There is also a utility function to help with determining the best path to a display box.&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="path.PNG" style="width: 958px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/47325i6414E9FF6BF47FF8/image-size/large?v=v2&amp;amp;px=999" role="button" title="path.PNG" alt="path.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 20:18:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-the-reference-to-an-object-in-a-platform-using-the/m-p/569231#M77983</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2022-11-14T20:18:15Z</dc:date>
    </item>
  </channel>
</rss>

