<?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: Subscript reference wrong display box in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Subscript-reference-wrong-display-box/m-p/745171#M92500</link>
    <description>&lt;P&gt;I used &amp;lt;&amp;lt; Get XML on the Table Box reference to see if there was anything interesting I could use to get what I wanted to&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1712570002398.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/63154i318570AA533E09FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1712570002398.png" alt="jthi_0-1712570002398.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Apr 2024 09:54:21 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-04-08T09:54:21Z</dc:date>
    <item>
      <title>Subscript reference wrong display box</title>
      <link>https://community.jmp.com/t5/Discussions/Subscript-reference-wrong-display-box/m-p/742582#M92248</link>
      <description>&lt;P&gt;In the script below, I was expecting the returned title to be "Fitted Weibull Distribution" but I get "Fitted Normal Distribution" instead. I'm not sure what's wrong, really appreciate the help.&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" );

db = dt &amp;lt;&amp;lt; Distribution(
	Stack( 1 ),
	Continuous Distribution(
		Column( :height ),
		Horizontal Layout( 1 ),
		Vertical( 0 )
	)
);

db &amp;lt;&amp;lt; fit all;

Title_1 = report(db)[Outlinebox("Fitted?")] &amp;lt;&amp;lt; get title;
print(Title_1);
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62909i5A315F267940B1CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 31 Mar 2024 23:28:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Subscript-reference-wrong-display-box/m-p/742582#M92248</guid>
      <dc:creator>Djtjhin</dc:creator>
      <dc:date>2024-03-31T23:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Subscript reference wrong display box</title>
      <link>https://community.jmp.com/t5/Discussions/Subscript-reference-wrong-display-box/m-p/742656#M92255</link>
      <description>&lt;P&gt;My guess is that JMP creates in memory all of the Fitted outputs so when you ask for&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Title_1 = report(db)[Outlinebox("Fitted?")] &amp;lt;&amp;lt; get title;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The Fitted Normal is the first one in Memory, and therefore it is the one returned.&amp;nbsp; You can bypass this issue with&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Title_1 = report(db)[Outlinebox("Fitted Weibull?")] &amp;lt;&amp;lt; get title;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Title_1 = report(db)[Outlinebox( 6 )] &amp;lt;&amp;lt; get title;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Apr 2024 03:03:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Subscript-reference-wrong-display-box/m-p/742656#M92255</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-04-01T03:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Subscript reference wrong display box</title>
      <link>https://community.jmp.com/t5/Discussions/Subscript-reference-wrong-display-box/m-p/742709#M92258</link>
      <description>&lt;P&gt;I think all the different fits are still there even if they aren't visible (they are under If Boxes), report subscripting will still match those and finally using ? wildcard search will match the first outline box which satisfies your search (in this case Fit Normal Distribution)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1711953471049.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62915iB48EFE371AF47370/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1711953471049.png" alt="jthi_2-1711953471049.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can use JMP to build the path from Show Properties menu (box path)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Report(platform)["height","Fitted Weibull Distribution"]&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You could write longer search term (I would avoid ? whenever possible)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Title_1 = report(db)[Outlinebox("Fitted W?")] &amp;lt;&amp;lt; get title;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or use XPath and get all the titles and get what you want from that&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;fit_obs = Report(db) &amp;lt;&amp;lt; XPath("//OutlineBox[contains(text(), 'Fitted ')]");
fit_obs &amp;lt;&amp;lt; get title;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Apr 2024 06:41:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Subscript-reference-wrong-display-box/m-p/742709#M92258</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-04-01T06:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Subscript reference wrong display box</title>
      <link>https://community.jmp.com/t5/Discussions/Subscript-reference-wrong-display-box/m-p/742914#M92268</link>
      <description>&lt;P&gt;I would use the table of sorted fits to make the reference.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

db = dt &amp;lt;&amp;lt; Distribution(
	Stack( 1 ),
	Continuous Distribution(
		Column( :height ),
		Horizontal Layout( 1 ),
		Vertical( 0 )
	)
);

db &amp;lt;&amp;lt; fit all;

rpt = db &amp;lt;&amp;lt; Report;
dist = rpt["Compare Distributions"][String Col Box( "Distribution" )] &amp;lt;&amp;lt; Get;
Title_1 = rpt[Outline Box( "Fitted" || dist[1] || "?" )] &amp;lt;&amp;lt; get title;
Print( Title_1 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Apr 2024 16:22:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Subscript-reference-wrong-display-box/m-p/742914#M92268</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2024-04-01T16:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Subscript reference wrong display box</title>
      <link>https://community.jmp.com/t5/Discussions/Subscript-reference-wrong-display-box/m-p/744147#M92380</link>
      <description>&lt;P&gt;Ah you are right. I didn't knw this before that all the possible fits are stored in the background. Good to know!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 20:36:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Subscript-reference-wrong-display-box/m-p/744147#M92380</guid>
      <dc:creator>Djtjhin</dc:creator>
      <dc:date>2024-04-03T20:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Subscript reference wrong display box</title>
      <link>https://community.jmp.com/t5/Discussions/Subscript-reference-wrong-display-box/m-p/744150#M92381</link>
      <description>&lt;P&gt;I think this is getting close to what I'm looking for. What I'm trying to do is get the user-selected distribution(s) and the respective parameters. I tried to modify the script to below but it doesn't necessarily give the right output. Could you help point out where I did wrong ?&lt;/P&gt;&lt;P&gt;Additional, this also raised few other doubts:&amp;nbsp;&lt;/P&gt;&lt;P&gt;- why does the &amp;lt;&amp;lt; get selected indices as matrix message returns the result in reverse order ?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

db = dt &amp;lt;&amp;lt; Distribution(
	Stack( 1 ),
	Continuous Distribution(
		Column( :height ),
		Horizontal Layout( 1 ),
		Vertical( 0 )
	)
);

db &amp;lt;&amp;lt; fit all;

rpt = db &amp;lt;&amp;lt; Report;

rpt["Compare Distributions"][CheckBoxBox( 1 )]&amp;lt;&amp;lt;set(3,1); //make additional random selection
wait(1);

dist = rpt["Compare Distributions"][String Col Box( "Distribution" )] &amp;lt;&amp;lt; Get;
matrix = rpt["Compare Distributions"][CheckBoxBox( 1 )] &amp;lt;&amp;lt; get selected indices as matrix();
matrix = reverse(matrix);
index = loc(matrix,1);
for(i=1,i&amp;lt;=nitems(index), i++,
	Title_1 = rpt[Outline Box( "Fitted" || dist[index[i]] || "?" )] &amp;lt;&amp;lt; get title;
	Print( Title_1 );
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Appreciate the help so far&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 21:07:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Subscript-reference-wrong-display-box/m-p/744150#M92381</guid>
      <dc:creator>Djtjhin</dc:creator>
      <dc:date>2024-04-03T21:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Subscript reference wrong display box</title>
      <link>https://community.jmp.com/t5/Discussions/Subscript-reference-wrong-display-box/m-p/744279#M92396</link>
      <description>&lt;P&gt;You seem to be missing some whitespace from your outline search inside the for loop (there should be space after "Fitted" -&amp;gt; "Fitted ").&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding the indices: most likely it is getting them in "original" order&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1712204007168.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/63065i8645412940BA0E0B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1712204007168.png" alt="jthi_0-1712204007168.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Below is an example which tries to avoid that checkbox mess using XPath&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

db = dt &amp;lt;&amp;lt; Distribution(Stack(1), Continuous Distribution(Column(:height), Horizontal Layout(1), Vertical(0)));
db &amp;lt;&amp;lt; fit all;
rpt = db &amp;lt;&amp;lt; Report;

rpt["Compare Distributions"][CheckBoxBox(1)] &amp;lt;&amp;lt; set(3, 1); //make additional random selection
Wait(0);

tb = rpt[Outline Box("Compare Distributions"), Table Box(1)];
items = tb[1] &amp;lt;&amp;lt; XPath("//CheckBoxBoxItem");
selections = {};
For Each({item, idx}, items,
	If(Contains(item, "\[isChecked="true"]\"),
		Insert Into(selections, idx);
	);
);

dists = (tb[2] &amp;lt;&amp;lt; Get)[selections];

For Each({distname}, dists,
	ob = rpt[Outline Box("Fitted " || distname || " ?")];
	show(ob &amp;lt;&amp;lt; get title);
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Apr 2024 04:23:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Subscript-reference-wrong-display-box/m-p/744279#M92396</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-04-04T04:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Subscript reference wrong display box</title>
      <link>https://community.jmp.com/t5/Discussions/Subscript-reference-wrong-display-box/m-p/745163#M92495</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;!&amp;nbsp; That works!&lt;/P&gt;&lt;P&gt;Btw, for my learning, I wouldn't have come to using 'ischecked = "true"' syntax as I didn't find this in scripting index nor in displaybox properties themselves. Could you share how you derive this? Would be nice for me to learn this process for future references.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 09:07:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Subscript-reference-wrong-display-box/m-p/745163#M92495</guid>
      <dc:creator>Djtjhin</dc:creator>
      <dc:date>2024-04-08T09:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Subscript reference wrong display box</title>
      <link>https://community.jmp.com/t5/Discussions/Subscript-reference-wrong-display-box/m-p/745171#M92500</link>
      <description>&lt;P&gt;I used &amp;lt;&amp;lt; Get XML on the Table Box reference to see if there was anything interesting I could use to get what I wanted to&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1712570002398.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/63154i318570AA533E09FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1712570002398.png" alt="jthi_0-1712570002398.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 09:54:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Subscript-reference-wrong-display-box/m-p/745171#M92500</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-04-08T09:54:21Z</dc:date>
    </item>
  </channel>
</rss>

