<?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: Save Presentation (pptx): is it possible to modify dynamically (JSL) the slide title? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Save-Presentation-pptx-is-it-possible-to-modify-dynamically-JSL/m-p/253642#M49799</link>
    <description>&lt;P&gt;Changing, deleting, moving, etc. of the different objects in the JMP output is one of the most powerful abilities in JMP.&amp;nbsp; This capability is detailed in the Scripting Guide, in the Section on Display Trees.&amp;nbsp; Below is a simple example of doing what you indicated your current need is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");

biv = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 528, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :weight ), Y( :height ) ),
	Elements( Points( X, Y, Legend( 6 ) ), Smoother( X, Y, Legend( 7 ) ) )
);

report(biv)[Outlinebox(1)] &amp;lt;&amp;lt; set title("This is my title");

report(biv) &amp;lt;&amp;lt; journal;
biv &amp;lt;&amp;lt; close window;


biv = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 528, 450 ),
	Show Control Panel( 0 ),
	Variables( X( :sex ), Y( :height ) ),
	Elements( Box Plot( X, Y, Legend( 4 ) ) )
);

report(biv)[Outlinebox(1)] &amp;lt;&amp;lt; set title("A different title");

report(biv) &amp;lt;&amp;lt; journal;
biv &amp;lt;&amp;lt; close window;

jour = current journal();

jour &amp;lt;&amp;lt; Save Presentation("$TEMP/MyTitles.pptx");

open("$TEMP/MyTitles.pptx");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="titles.PNG" style="width: 655px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22456i8965D812493732C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="titles.PNG" alt="titles.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 22 Mar 2020 21:22:04 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2020-03-22T21:22:04Z</dc:date>
    <item>
      <title>Save Presentation (pptx): is it possible to modify dynamically (JSL) the slide title?</title>
      <link>https://community.jmp.com/t5/Discussions/Save-Presentation-pptx-is-it-possible-to-modify-dynamically-JSL/m-p/253638#M49797</link>
      <description>&lt;P&gt;Hi JMP Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you save a Journal as a PowerPoint presentation (pptx), the export algorithm uses the name of each OutlineBox to populate the title (as editable text) on each slide.&amp;nbsp;Is it possible to reproduce this step in a JSL script where the slide title would be generated dynamically (change the default OutlineBox name)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I have generated a large number of GB plots (script generated) that are stored in a journal. When I export this journal as a pptx file, all the slide titles are labelled as "Graph Builder" because the OutlineBox names are all by default set to "Graph Builder". In this particular case, I would like to change the the slide title from "Graph Builder" to the content of the TextEditBox nested in the PictureBox for each plot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have read that the export to pptx algorithm is a third party product that is essentially a black box. If it is the case, I would greatly appreciate hearing about work around ideas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TS&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Mar 2020 20:38:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Save-Presentation-pptx-is-it-possible-to-modify-dynamically-JSL/m-p/253638#M49797</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2020-03-22T20:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Save Presentation (pptx): is it possible to modify dynamically (JSL) the slide title?</title>
      <link>https://community.jmp.com/t5/Discussions/Save-Presentation-pptx-is-it-possible-to-modify-dynamically-JSL/m-p/253642#M49799</link>
      <description>&lt;P&gt;Changing, deleting, moving, etc. of the different objects in the JMP output is one of the most powerful abilities in JMP.&amp;nbsp; This capability is detailed in the Scripting Guide, in the Section on Display Trees.&amp;nbsp; Below is a simple example of doing what you indicated your current need is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");

biv = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 528, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :weight ), Y( :height ) ),
	Elements( Points( X, Y, Legend( 6 ) ), Smoother( X, Y, Legend( 7 ) ) )
);

report(biv)[Outlinebox(1)] &amp;lt;&amp;lt; set title("This is my title");

report(biv) &amp;lt;&amp;lt; journal;
biv &amp;lt;&amp;lt; close window;


biv = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 528, 450 ),
	Show Control Panel( 0 ),
	Variables( X( :sex ), Y( :height ) ),
	Elements( Box Plot( X, Y, Legend( 4 ) ) )
);

report(biv)[Outlinebox(1)] &amp;lt;&amp;lt; set title("A different title");

report(biv) &amp;lt;&amp;lt; journal;
biv &amp;lt;&amp;lt; close window;

jour = current journal();

jour &amp;lt;&amp;lt; Save Presentation("$TEMP/MyTitles.pptx");

open("$TEMP/MyTitles.pptx");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="titles.PNG" style="width: 655px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22456i8965D812493732C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="titles.PNG" alt="titles.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Mar 2020 21:22:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Save-Presentation-pptx-is-it-possible-to-modify-dynamically-JSL/m-p/253642#M49799</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-03-22T21:22:04Z</dc:date>
    </item>
  </channel>
</rss>

