<?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 Set Operations for Lists of DisplayBoxes? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Set-Operations-for-Lists-of-DisplayBoxes/m-p/687445#M87309</link>
    <description>&lt;P&gt;How to apply set operations to lists of display boxes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- remove duplicates&lt;/P&gt;&lt;P&gt;- intersect&lt;/P&gt;&lt;P&gt;- subtract&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Plan B:&lt;BR /&gt;Is there a function which returns the unique position of a display box in the display tree?&lt;/P&gt;&lt;P&gt;With the information about the position (pos 1.2.4.1.2 vs. 1.2) one could pre-execute the set operations for positions and the apply it to the lists with display boxes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Get Display Path( )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;which gives the Xpath or subscript function to get from one Level to another level. But I didn't find a function &lt;FONT face="courier new,courier"&gt;Get Pos&lt;/FONT&gt; ...&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;Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
gb = dt &amp;lt;&amp;lt; Graph Builder(
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) )
);
gb2 = gb &amp;lt;&amp;lt; Clone box();

nw = New Window("test",H List Box (gb2,gb2));


(nw &amp;lt;&amp;lt; xpath("//AxisBox")) &amp;lt;&amp;lt; parent;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 16 Oct 2023 06:23:20 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2023-10-16T06:23:20Z</dc:date>
    <item>
      <title>Set Operations for Lists of DisplayBoxes?</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Operations-for-Lists-of-DisplayBoxes/m-p/687445#M87309</link>
      <description>&lt;P&gt;How to apply set operations to lists of display boxes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- remove duplicates&lt;/P&gt;&lt;P&gt;- intersect&lt;/P&gt;&lt;P&gt;- subtract&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Plan B:&lt;BR /&gt;Is there a function which returns the unique position of a display box in the display tree?&lt;/P&gt;&lt;P&gt;With the information about the position (pos 1.2.4.1.2 vs. 1.2) one could pre-execute the set operations for positions and the apply it to the lists with display boxes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Get Display Path( )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;which gives the Xpath or subscript function to get from one Level to another level. But I didn't find a function &lt;FONT face="courier new,courier"&gt;Get Pos&lt;/FONT&gt; ...&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;Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
gb = dt &amp;lt;&amp;lt; Graph Builder(
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) )
);
gb2 = gb &amp;lt;&amp;lt; Clone box();

nw = New Window("test",H List Box (gb2,gb2));


(nw &amp;lt;&amp;lt; xpath("//AxisBox")) &amp;lt;&amp;lt; parent;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Oct 2023 06:23:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Operations-for-Lists-of-DisplayBoxes/m-p/687445#M87309</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-10-16T06:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set Operations for Lists of DisplayBoxes?</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Operations-for-Lists-of-DisplayBoxes/m-p/687456#M87310</link>
      <description>&lt;P&gt;If you have a list of references and a reference you wish to find you can use Contains&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

nw = new window("",
	vlb = v list box()
);

tb1 = Text Box("a");
tb2 = Text Box("b");
tb3 = Text Box("c");

vlb &amp;lt;&amp;lt; Append(tb1);
vlb &amp;lt;&amp;lt; Append(tb3);
vlb &amp;lt;&amp;lt; Append(tb2);

Contains(vlb &amp;lt;&amp;lt; XPath("//TextBox"), tb2);&amp;nbsp;//3&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Oct 2023 06:36:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Operations-for-Lists-of-DisplayBoxes/m-p/687456#M87310</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-10-16T06:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Operations for Lists of DisplayBoxes?</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Operations-for-Lists-of-DisplayBoxes/m-p/687459#M87311</link>
      <description>&lt;P&gt;ah, right, so all the functions work :)&lt;/img&gt;&lt;BR /&gt;- even the associative array.&lt;/P&gt;&lt;P&gt;very useful, thanks :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hm, strange - seems that when I tried it first I did something wrong ...&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);

nw = new window("",
	vlb = v list box(vlb2 = v list box());
	
);

tb1 = Text Box("a");
tb2 = Text Box("b");
tb3 = Text Box("c");

vlb &amp;lt;&amp;lt; Append(tb1);
vlb &amp;lt;&amp;lt; Append(tb2);
vlb2 &amp;lt;&amp;lt; Append(tb3);

aa1 = associative array((vlb &amp;lt;&amp;lt; XPath("//TextBox"))&amp;lt;&amp;lt; parent);
aa2 = associative array((vlb2 &amp;lt;&amp;lt; XPath("//TextBox"))&amp;lt;&amp;lt; parent);

aa1 &amp;lt;&amp;lt; intersect(aa2);
show(aa1)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Oct 2023 06:51:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Operations-for-Lists-of-DisplayBoxes/m-p/687459#M87311</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-10-16T06:51:11Z</dc:date>
    </item>
  </channel>
</rss>

