<?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: Get text from reporting platform in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Get-text-from-reporting-platform/m-p/663598#M85202</link>
    <description>&lt;P&gt;Thank you for the quick reply, Hogi!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The alternate code grabs too much text for my liking, as shown in the screenshot.&amp;nbsp; I'm looking specifically to grab the equation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, thank you for catching that I flipped the eval and eval expr! That completely solved the issue! I can use either the first or second try() to get the equations I'm looking for.&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="StarfruitBob_0-1690569734740.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55442iB088FB31EB797DF9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StarfruitBob_0-1690569734740.png" alt="StarfruitBob_0-1690569734740.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2023 18:45:21 GMT</pubDate>
    <dc:creator>StarfruitBob</dc:creator>
    <dc:date>2023-07-28T18:45:21Z</dc:date>
    <item>
      <title>Get text from reporting platform</title>
      <link>https://community.jmp.com/t5/Discussions/Get-text-from-reporting-platform/m-p/663500#M85197</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something I've struggled greatly with is how to &lt;STRONG&gt;Get&lt;/STRONG&gt; *something* from platforms. In this case, it's the linear fit equation just under "Linear Fit". The Properties and Show Tree Structure menu both show different text exit boxes, so I've tried to grab them both and used &lt;STRONG&gt;Get&lt;/STRONG&gt; (which isn't recognized by the platform, or maybe just the object), and &lt;STRONG&gt;Get text&lt;/STRONG&gt;. Both do not grab the text I require. Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another issue is that 6 reports are generated, where 2 of them should be, since summarize creates a list of unique values in :sex and that's what how many times the for loop is iterating. The reporting is also filtered for these values.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here(1);
clear log();

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

summarize( gen_lst = by( dt:sex ) );

for( i = 1, i &amp;lt;= N Items( gen_lst ), i++,
	
	// Create visualization, save to target
	vis = eval expr( eval(
		Bivariate(
			Y( :weight ),
			X( :height ),
			Where( :sex == expr( gen_lst[i] ) )
		)
	) );

	// Fit: Linear
	vis &amp;lt;&amp;lt; Fit Line( {Line Color( {255, 000, 000} )} );
	
	// Tries to copy equation in "Linear Fit"
	try( eqs_tmp1 = report(vis)["Linear Fit", TextEditBox(1)] &amp;lt;&amp;lt; Get text );
	try( eqs_tmp4 = report(vis)[TextEditBox(4)] &amp;lt;&amp;lt; Get text );
	try( print( eqs_tmp1 ) );
	try( print( eqs_tmp4 ) );

);&lt;/CODE&gt;&lt;/PRE&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="StarfruitBob_0-1690565105065.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55415iD81E3FC9B6AACD67/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StarfruitBob_0-1690565105065.png" alt="StarfruitBob_0-1690565105065.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 17:29:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-text-from-reporting-platform/m-p/663500#M85197</guid>
      <dc:creator>StarfruitBob</dc:creator>
      <dc:date>2023-07-28T17:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Get text from reporting platform</title>
      <link>https://community.jmp.com/t5/Discussions/Get-text-from-reporting-platform/m-p/663533#M85199</link>
      <description>&lt;P&gt;I think it should be&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Eval(Eval Expr(...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Alternatively, you could use By:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

vis = Bivariate( Y( :weight ), X( :height ), By( :sex ) );		

vis &amp;lt;&amp;lt; Fit Line( {Line Color( {255, 000, 000} )} );
(vis &amp;lt;&amp;lt; XPath( "//OutlineBox[text()='Linear Fit']//TextEditBox" )) &amp;lt;&amp;lt; get text;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 18:09:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-text-from-reporting-platform/m-p/663533#M85199</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-07-28T18:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get text from reporting platform</title>
      <link>https://community.jmp.com/t5/Discussions/Get-text-from-reporting-platform/m-p/663598#M85202</link>
      <description>&lt;P&gt;Thank you for the quick reply, Hogi!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The alternate code grabs too much text for my liking, as shown in the screenshot.&amp;nbsp; I'm looking specifically to grab the equation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, thank you for catching that I flipped the eval and eval expr! That completely solved the issue! I can use either the first or second try() to get the equations I'm looking for.&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="StarfruitBob_0-1690569734740.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55442iB088FB31EB797DF9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StarfruitBob_0-1690569734740.png" alt="StarfruitBob_0-1690569734740.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 18:45:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-text-from-reporting-platform/m-p/663598#M85202</guid>
      <dc:creator>StarfruitBob</dc:creator>
      <dc:date>2023-07-28T18:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get text from reporting platform</title>
      <link>https://community.jmp.com/t5/Discussions/Get-text-from-reporting-platform/m-p/663620#M85203</link>
      <description>&lt;P&gt;on my system (v17.1):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1690570444441.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/55444iBB2A95F72D5EB48E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1690570444441.png" alt="hogi_1-1690570444441.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hm, I wonder what could make the difference?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 18:55:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-text-from-reporting-platform/m-p/663620#M85203</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-07-28T18:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get text from reporting platform</title>
      <link>https://community.jmp.com/t5/Discussions/Get-text-from-reporting-platform/m-p/663622#M85205</link>
      <description>&lt;P&gt;There are less brackets in your screenshot, right?&lt;BR /&gt;So, the get text is directly piped to vis and it returns the full report.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 18:58:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-text-from-reporting-platform/m-p/663622#M85205</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-07-28T18:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get text from reporting platform</title>
      <link>https://community.jmp.com/t5/Discussions/Get-text-from-reporting-platform/m-p/663623#M85206</link>
      <description>&lt;P&gt;Here are few more options which you could use. I would either use the first option here or 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");

Summarize(gen_lst = by(dt:sex));

For(i = 1, i &amp;lt;= N Items(gen_lst), i++, 
	
	// Create visualization, save to target
	vis = Eval(Eval Expr(Bivariate(Y(:weight), X(:height), Where(:sex == Expr(gen_lst[i])))));

	// Fit: Linear
	vis &amp;lt;&amp;lt; Fit Line({Line Color({255, 000, 000})});
	
	txt1 = Report(vis)[OutlineBox("Linear Fit"), Text Edit Box(1)] &amp;lt;&amp;lt; get text; // I would use this or XPath
	txt2 = Report(vis)["Linear Fit", Text Edit Box(1)] &amp;lt;&amp;lt; get text;
	txt3 = ((Report(vis)[OutlineBox("Linear Fit")] &amp;lt;&amp;lt; Child) &amp;lt;&amp;lt; child) &amp;lt;&amp;lt; get text;
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 19:00:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-text-from-reporting-platform/m-p/663623#M85206</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-07-28T19:00:28Z</dc:date>
    </item>
  </channel>
</rss>

