<?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: All OutlineBoxes with title condition By XPath in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/All-OutlineBoxes-with-title-condition-By-XPath/m-p/48414#M27554</link>
    <description>&lt;P&gt;I think "//OutlineBox[@helpKey='Oneway Report']" is what you are looking for:&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/iris.jmp" );

(ow1 = ( dt &amp;lt;&amp;lt; Oneway( Y( :Sepal length ), X( :Species ) ) ) ) &amp;lt;&amp;lt; Journal;
(ow2 = ( dt &amp;lt;&amp;lt; Oneway( Y( :Sepal width ), X( :Species ) ) ) ) &amp;lt;&amp;lt; Journal;
(ow3 = ( dt &amp;lt;&amp;lt; Oneway( Y( :Petal length ), X( :Species ) ) ) ) &amp;lt;&amp;lt; Journal;
(ow4 = ( dt &amp;lt;&amp;lt; Oneway( Y( :Petal width ), X( :Species ) ) ) ) &amp;lt;&amp;lt; Journal;

{ ow1, ow2, ow3, ow4 } &amp;lt;&amp;lt; Close Window;

//By text:
( Current Journal() &amp;lt;&amp;lt; XPath("//OutlineBox[contains( text(), 'Oneway')]") ) &amp;lt;&amp;lt; Prepend (Page Break Box());

//By helpkey (better):
( Current Journal() &amp;lt;&amp;lt; XPath("//OutlineBox[@helpKey='Oneway Report']") ) &amp;lt;&amp;lt; Prepend ( Page Break Box() );&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;Edited to use the helpkey attribute (more robust than title), thank you Justin for the links.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Dec 2017 15:38:08 GMT</pubDate>
    <dc:creator>ih</dc:creator>
    <dc:date>2017-12-11T15:38:08Z</dc:date>
    <item>
      <title>All OutlineBoxes with title condition By XPath</title>
      <link>https://community.jmp.com/t5/Discussions/All-OutlineBoxes-with-title-condition-By-XPath/m-p/48408#M27549</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to add Page Break to All Oneway OutlineBoxes in my Journal.&lt;/P&gt;&lt;P&gt;Sort Of&lt;/P&gt;&lt;P&gt;(jrn &amp;lt;&amp;lt; XPath("//OutlineBox[contains(./title(), 'Oneway Analysis')]")) &amp;lt;&amp;lt; Prepend (Page Break Box());&lt;/P&gt;&lt;P&gt;What is the right expression?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2017 09:29:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/All-OutlineBoxes-with-title-condition-By-XPath/m-p/48408#M27549</guid>
      <dc:creator>tom_abramov</dc:creator>
      <dc:date>2017-12-10T09:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: All OutlineBoxes with title condition By XPath</title>
      <link>https://community.jmp.com/t5/Discussions/All-OutlineBoxes-with-title-condition-By-XPath/m-p/48414#M27554</link>
      <description>&lt;P&gt;I think "//OutlineBox[@helpKey='Oneway Report']" is what you are looking for:&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/iris.jmp" );

(ow1 = ( dt &amp;lt;&amp;lt; Oneway( Y( :Sepal length ), X( :Species ) ) ) ) &amp;lt;&amp;lt; Journal;
(ow2 = ( dt &amp;lt;&amp;lt; Oneway( Y( :Sepal width ), X( :Species ) ) ) ) &amp;lt;&amp;lt; Journal;
(ow3 = ( dt &amp;lt;&amp;lt; Oneway( Y( :Petal length ), X( :Species ) ) ) ) &amp;lt;&amp;lt; Journal;
(ow4 = ( dt &amp;lt;&amp;lt; Oneway( Y( :Petal width ), X( :Species ) ) ) ) &amp;lt;&amp;lt; Journal;

{ ow1, ow2, ow3, ow4 } &amp;lt;&amp;lt; Close Window;

//By text:
( Current Journal() &amp;lt;&amp;lt; XPath("//OutlineBox[contains( text(), 'Oneway')]") ) &amp;lt;&amp;lt; Prepend (Page Break Box());

//By helpkey (better):
( Current Journal() &amp;lt;&amp;lt; XPath("//OutlineBox[@helpKey='Oneway Report']") ) &amp;lt;&amp;lt; Prepend ( Page Break Box() );&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;Edited to use the helpkey attribute (more robust than title), thank you Justin for the links.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 15:38:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/All-OutlineBoxes-with-title-condition-By-XPath/m-p/48414#M27554</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2017-12-11T15:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: All OutlineBoxes with title condition By XPath</title>
      <link>https://community.jmp.com/t5/Discussions/All-OutlineBoxes-with-title-condition-By-XPath/m-p/48422#M27560</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Is there some documentation/tutorial/book with Xpath rules and syntax in JMP?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 08:20:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/All-OutlineBoxes-with-title-condition-By-XPath/m-p/48422#M27560</guid>
      <dc:creator>tom_abramov</dc:creator>
      <dc:date>2017-12-11T08:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: All OutlineBoxes with title condition By XPath</title>
      <link>https://community.jmp.com/t5/Discussions/All-OutlineBoxes-with-title-condition-By-XPath/m-p/48423#M27561</link>
      <description>&lt;P&gt;If you've not seen it, take a look at the&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discovery-Summit-2015/JMP-Discovery-2015-Mining-JMP-Reports-v10-pdf/ta-p/22595" target="_self"&gt;Discovery Paper &lt;/A&gt;by&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3907"&gt;@Phil_Brown&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 08:40:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/All-OutlineBoxes-with-title-condition-By-XPath/m-p/48423#M27561</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-12-11T08:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: All OutlineBoxes with title condition By XPath</title>
      <link>https://community.jmp.com/t5/Discussions/All-OutlineBoxes-with-title-condition-By-XPath/m-p/48430#M27567</link>
      <description>Thank you.&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Dec 2017 12:29:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/All-OutlineBoxes-with-title-condition-By-XPath/m-p/48430#M27567</guid>
      <dc:creator>tom_abramov</dc:creator>
      <dc:date>2017-12-11T12:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: All OutlineBoxes with title condition By XPath</title>
      <link>https://community.jmp.com/t5/Discussions/All-OutlineBoxes-with-title-condition-By-XPath/m-p/48435#M27570</link>
      <description>&lt;P&gt;I would recommend checking out &lt;A href="https://www.w3schools.com/xml/xpath_syntax.asp" target="_self"&gt;W3School's documentation on XPath&lt;/A&gt;&amp;nbsp;for information about specific XPath syntax.&lt;/P&gt;
&lt;P&gt;I typically tackle XPath problems by looking at the display tree's underlying XML by sending the Get XML() message to the report layer. Showing the XML in the log, I can see all of the attributes available, even ones that you cannot see by just looking at a report, like the helpKey or charID, which can be helpful for identifying the display objects you need. You can copy the XML into something like &lt;A href="http://www.xpathtester.com/xpath" target="_self"&gt;xpathtester.com&lt;/A&gt;&amp;nbsp;or just use the XML within the XPath Query() JSL function to test out your query, without&amp;nbsp;needing&amp;nbsp;the report to be created.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 14:21:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/All-OutlineBoxes-with-title-condition-By-XPath/m-p/48435#M27570</guid>
      <dc:creator>Justin_Chilton</dc:creator>
      <dc:date>2017-12-11T14:21:27Z</dc:date>
    </item>
  </channel>
</rss>

