<?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 a jrp like script from a report window in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Get-a-jrp-like-script-from-a-report-window/m-p/329756#M57897</link>
    <description>&lt;P&gt;Thank you for the reply. However I didn't manage to solve my issue yet.&lt;/P&gt;&lt;P&gt;After opening an existing .jrp file, which in turn opens a data table and a report window, the following scripts:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;wList = Get Window List(Type("Reports"));
print(wList[1] &amp;lt;&amp;lt; report &amp;lt;&amp;lt; Get Scriptable Object() &amp;lt;&amp;lt; get script());&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;wList = Get Window List(Type("Reports"));
print(wList[1] &amp;lt;&amp;lt; Get Scriptable Object() &amp;lt;&amp;lt; get script());&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;will both result in&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;HeadBox(V List Box(Box(OutlineBox(H List Box(NoCloneBox(IfBox(H List Box(V List Box(H List Box(ButtonBox, ButtonBox, ButtonBox), BorderBox(V List Box(H List Box(PopupBox, Text Box("40 Columns")), V List [... etc.]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Not the kind of script I am looking for. This seems to be a special case, since I'm starting with an existing report window. What am I doing wrong?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Nov 2020 15:48:00 GMT</pubDate>
    <dc:creator>Samu</dc:creator>
    <dc:date>2020-11-04T15:48:00Z</dc:date>
    <item>
      <title>Get a jrp like script from a report window</title>
      <link>https://community.jmp.com/t5/Discussions/Get-a-jrp-like-script-from-a-report-window/m-p/329698#M57888</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;I am trying to save my report script to a jrp file as explained in:&amp;nbsp;&lt;LI-MESSAGE title="Save charts as &amp;amp;quot;.jrp&amp;amp;quot; file in JSL" uid="10582" url="https://community.jmp.com/t5/Discussions/Save-charts-as-quot-jrp-quot-file-in-JSL/m-p/10582#U10582" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I don't have direct access to the Graph Builder that generated my Report Window.&lt;/P&gt;
&lt;P&gt;I'm getting my reports via&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Get Window List(Type("Reports"));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And now I need to extract the script to save it as a text file, however I can't figure out how to get that script.&lt;/P&gt;
&lt;P&gt;When using &amp;lt;&amp;lt; Get Script I only end up with things like&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;GraphBuilderBox(ScaleBox(ParallelScaleBox(ScaleBox(ScaleBox(ScaleBox(ScaleBox(ScaleBox(ScaleBox(GraphBuilderContainerBox(Graph[...]&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;How do I get a text that's more like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
&amp;nbsp;Size( 1896, 975 ),
&amp;nbsp;Show Control Panel( 0 ),
&amp;nbsp;Show Legend( 0 ),
&amp;nbsp;Variables(...&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:42:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-a-jrp-like-script-from-a-report-window/m-p/329698#M57888</guid>
      <dc:creator>Samu</dc:creator>
      <dc:date>2023-06-09T23:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Get a jrp like script from a report window</title>
      <link>https://community.jmp.com/t5/Discussions/Get-a-jrp-like-script-from-a-report-window/m-p/329752#M57893</link>
      <description>&lt;P&gt;Take a look at the Get Scriptable Object() message. You can use that to get access to the platform (i.e., Graph Builder) in a report.&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 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = bivariate( y( :weight ), x( :height ) );
rbiv = biv &amp;lt;&amp;lt; report;
bivobj = rbiv &amp;lt;&amp;lt; Get Scriptable Object();
bivobj&amp;lt;&amp;lt;get script();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 15:19:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-a-jrp-like-script-from-a-report-window/m-p/329752#M57893</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2020-11-04T15:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get a jrp like script from a report window</title>
      <link>https://community.jmp.com/t5/Discussions/Get-a-jrp-like-script-from-a-report-window/m-p/329756#M57897</link>
      <description>&lt;P&gt;Thank you for the reply. However I didn't manage to solve my issue yet.&lt;/P&gt;&lt;P&gt;After opening an existing .jrp file, which in turn opens a data table and a report window, the following scripts:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;wList = Get Window List(Type("Reports"));
print(wList[1] &amp;lt;&amp;lt; report &amp;lt;&amp;lt; Get Scriptable Object() &amp;lt;&amp;lt; get script());&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;wList = Get Window List(Type("Reports"));
print(wList[1] &amp;lt;&amp;lt; Get Scriptable Object() &amp;lt;&amp;lt; get script());&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;will both result in&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;HeadBox(V List Box(Box(OutlineBox(H List Box(NoCloneBox(IfBox(H List Box(V List Box(H List Box(ButtonBox, ButtonBox, ButtonBox), BorderBox(V List Box(H List Box(PopupBox, Text Box("40 Columns")), V List [... etc.]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Not the kind of script I am looking for. This seems to be a special case, since I'm starting with an existing report window. What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 15:48:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-a-jrp-like-script-from-a-report-window/m-p/329756#M57897</guid>
      <dc:creator>Samu</dc:creator>
      <dc:date>2020-11-04T15:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get a jrp like script from a report window</title>
      <link>https://community.jmp.com/t5/Discussions/Get-a-jrp-like-script-from-a-report-window/m-p/329761#M57899</link>
      <description>&lt;P&gt;It could be that your messages in:&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;print(wList[1] &amp;lt;&amp;lt; report &amp;lt;&amp;lt; Get Scriptable Object() &amp;lt;&amp;lt; get script());&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;aren't being executed in the order you think they are.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Compare the results of these two:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = bivariate( y( :weight ), x( :height ) );
rbiv = biv &amp;lt;&amp;lt; report;
Print( (rbiv &amp;lt;&amp;lt; Get Scriptable Object()) &amp;lt;&amp;lt; get script() );

Print( rbiv &amp;lt;&amp;lt; Get Scriptable Object() &amp;lt;&amp;lt; get script() );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 16:14:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-a-jrp-like-script-from-a-report-window/m-p/329761#M57899</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2020-11-04T16:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get a jrp like script from a report window</title>
      <link>https://community.jmp.com/t5/Discussions/Get-a-jrp-like-script-from-a-report-window/m-p/329800#M57900</link>
      <description>&lt;P&gt;Interesting. By doing it step by step like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;wList = Get Window List(Type("Reports"));
rep =  wList[1] &amp;lt;&amp;lt; report;
so = rep &amp;lt;&amp;lt; Get Scriptable Object();
skr = so &amp;lt;&amp;lt; get script();
Print( skr );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I am now getting error messages that &lt;EM&gt;Object 'HeadBox' does not recognize the message 'report'; &lt;/EM&gt;as well as&amp;nbsp;&lt;EM&gt;Object 'HeadBox' does not recognize the message 'Get Scriptable Object'; &lt;/EM&gt;if I cut the report message. So&amp;nbsp;&lt;CODE class=" language-jsl"&gt;Get Window List(Type("Reports")); &lt;/CODE&gt;gets me a headbox that can only recognize Get Script, which in turn gives me the same old&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;HeadBox(V List Box(Box(OutlineBox(H List Box(NoCloneBox(IfBox(H List Box&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I already learned something, but I'm still not there yet. How &lt;EM&gt;do&lt;/EM&gt; I get the Scriptable Object of my window?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 16:41:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-a-jrp-like-script-from-a-report-window/m-p/329800#M57900</guid>
      <dc:creator>Samu</dc:creator>
      <dc:date>2020-11-04T16:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Get a jrp like script from a report window</title>
      <link>https://community.jmp.com/t5/Discussions/Get-a-jrp-like-script-from-a-report-window/m-p/329801#M57901</link>
      <description>&lt;P&gt;The "Get Window List" returns the Top Parent for the window.&lt;/P&gt;
&lt;P&gt;The "Get Scriptable Object" is a message to an Outline Box().&amp;nbsp; Therefore, this modification should get you what you want.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/big class.jmp" );
dis = Distribution( Continuous Distribution( Column( :height ) ) );

x = (Get Window List( Type( "Reports" ) )[1][Outline Box( 1 )] &amp;lt;&amp;lt; get scriptable object());

x &amp;lt;&amp;lt; get script;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 17:16:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-a-jrp-like-script-from-a-report-window/m-p/329801#M57901</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-11-04T17:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get a jrp like script from a report window</title>
      <link>https://community.jmp.com/t5/Discussions/Get-a-jrp-like-script-from-a-report-window/m-p/329821#M57902</link>
      <description>&lt;P&gt;Thank you very much, that did it!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 17:53:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-a-jrp-like-script-from-a-report-window/m-p/329821#M57902</guid>
      <dc:creator>Samu</dc:creator>
      <dc:date>2020-11-04T17:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get a jrp like script from a report window</title>
      <link>https://community.jmp.com/t5/Discussions/Get-a-jrp-like-script-from-a-report-window/m-p/589099#M79401</link>
      <description>&lt;P&gt;This little nugget should be in the JSL Cookbook! &amp;nbsp;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;! &amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5080"&gt;@DonMcCormack&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 22:04:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-a-jrp-like-script-from-a-report-window/m-p/589099#M79401</guid>
      <dc:creator>MikeD_Anderson</dc:creator>
      <dc:date>2023-01-11T22:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get a jrp like script from a report window</title>
      <link>https://community.jmp.com/t5/Discussions/Get-a-jrp-like-script-from-a-report-window/m-p/589209#M79420</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4530"&gt;@MikeD_Anderson&lt;/a&gt;! I agree, it would make a good addition.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 13:50:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-a-jrp-like-script-from-a-report-window/m-p/589209#M79420</guid>
      <dc:creator>DonMcCormack</dc:creator>
      <dc:date>2023-01-12T13:50:37Z</dc:date>
    </item>
  </channel>
</rss>

