<?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 Get Graph Builder from Report Window in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Get-Graph-Builder-from-Report-Window/m-p/242040#M47817</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I have a number of already created graphs - all one graph in a single window.&lt;/P&gt;&lt;P&gt;Now I'm creating a script that goes over all open graph windows and changes some text within the graph.&lt;/P&gt;&lt;P&gt;I got this far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;wList = Get Window List(Type("Reports"));

For(w = 1, w &amp;lt;= nitems(wList), w++,
	Print(wList[w] &amp;lt;&amp;lt; Get Window Title());
	wList[w] &amp;lt;&amp;lt; SendToReport( [...]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Basicially, once I have the window, I'd like to access the Graph Builder and the SendToReport functionality.&lt;/P&gt;&lt;P&gt;Needless to say, a Window isn't the same thing as a Graph Builder, so this isn't working. &lt;STRONG&gt;How do I get from having the window to having the Graph Builder?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm imagining something along the lines of wList[w] &amp;lt;&amp;lt; Get Graph Builder &amp;lt;&amp;lt; SendToReport()&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I also realize that this would be a lot easier to do in the script that actually created those graphs, but for various reasons that solution will only be implemented in the future and right now I'm unable to do it that way and will have to work with the finished graphs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2020 14:21:41 GMT</pubDate>
    <dc:creator>Samu</dc:creator>
    <dc:date>2020-01-21T14:21:41Z</dc:date>
    <item>
      <title>Get Graph Builder from Report Window</title>
      <link>https://community.jmp.com/t5/Discussions/Get-Graph-Builder-from-Report-Window/m-p/242040#M47817</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I have a number of already created graphs - all one graph in a single window.&lt;/P&gt;&lt;P&gt;Now I'm creating a script that goes over all open graph windows and changes some text within the graph.&lt;/P&gt;&lt;P&gt;I got this far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;wList = Get Window List(Type("Reports"));

For(w = 1, w &amp;lt;= nitems(wList), w++,
	Print(wList[w] &amp;lt;&amp;lt; Get Window Title());
	wList[w] &amp;lt;&amp;lt; SendToReport( [...]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Basicially, once I have the window, I'd like to access the Graph Builder and the SendToReport functionality.&lt;/P&gt;&lt;P&gt;Needless to say, a Window isn't the same thing as a Graph Builder, so this isn't working. &lt;STRONG&gt;How do I get from having the window to having the Graph Builder?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm imagining something along the lines of wList[w] &amp;lt;&amp;lt; Get Graph Builder &amp;lt;&amp;lt; SendToReport()&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I also realize that this would be a lot easier to do in the script that actually created those graphs, but for various reasons that solution will only be implemented in the future and right now I'm unable to do it that way and will have to work with the finished graphs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 14:21:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-Graph-Builder-from-Report-Window/m-p/242040#M47817</guid>
      <dc:creator>Samu</dc:creator>
      <dc:date>2020-01-21T14:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get Graph Builder from Report Window</title>
      <link>https://community.jmp.com/t5/Discussions/Get-Graph-Builder-from-Report-Window/m-p/242047#M47818</link>
      <description>&lt;P&gt;You are close......here is an example of how to do what you want.&amp;nbsp; You will just have to use the various messages for the different objects within the output windows.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/blood pressure.jmp" );

Graph Builder(
	Size( 534, 450 ),
	Show Control Panel( 0 ),
	Variables( X( :Dose ), Y( :BP 8M ) ),
	Elements( Points( X, Y, Legend( 3 ) ) )
);

Graph Builder(
	Size( 534, 450 ),
	Show Control Panel( 0 ),
	Variables( X( :Dose ), Y( :BP 12M ) ),
	Elements( Points( X, Y, Legend( 3 ) ) )
);

wList = Get Window List( Type( "Reports" ) );

wList[1][axisbox( 2 )] &amp;lt;&amp;lt; Max( 250 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Jan 2020 14:45:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-Graph-Builder-from-Report-Window/m-p/242047#M47818</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-01-21T14:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Get Graph Builder from Report Window</title>
      <link>https://community.jmp.com/t5/Discussions/Get-Graph-Builder-from-Report-Window/m-p/242300#M47844</link>
      <description>&lt;P&gt;Thank you! Exactly what I needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For reference, in case someone wants to do the same:&lt;/P&gt;&lt;P&gt;wList[w][ScaleBox(n)] &amp;lt;&amp;lt; Label Row() lets you manipulate axis labels.&lt;/P&gt;&lt;P&gt;wList[w][TextEditBox(n)] &amp;lt;&amp;lt;&amp;nbsp;Set Text() lets you change the head title, as well as axis titles.&lt;/P&gt;&lt;P&gt;wList[w][FrameBox(n)] &amp;lt;&amp;lt; DispatchSeg(TextSeg( m ), {Set Text()} lets you change text boxes inside the graph, like Median or N.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Curiously, for some of the changes to actually get displayed (those set by Label Row and DispatchSeg) you need to make a Get Text request afterwards, like for example:&amp;nbsp;Print(wList[w][ScaleBox(1)] &amp;lt;&amp;lt; Get Text);&lt;/P&gt;&lt;P&gt;Likely because that's not the best way to go about those text changes, but that way you can use code as in Graph Builder. :D&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 13:05:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-Graph-Builder-from-Report-Window/m-p/242300#M47844</guid>
      <dc:creator>Samu</dc:creator>
      <dc:date>2020-01-22T13:05:14Z</dc:date>
    </item>
  </channel>
</rss>

