<?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 How to save Dashboard to run animation (.gif) through JSL? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-save-Dashboard-to-run-animation-gif-through-JSL/m-p/710994#M89466</link>
    <description>&lt;P&gt;Hello expert,&lt;/P&gt;&lt;P&gt;I want to save my Dashboard in .gif (animation) through JSL because "Date"&amp;nbsp;is not interactive in html.&lt;/P&gt;&lt;P&gt;The local data filter for animation is based on AVI date (date will change daily because data being refreshed).&lt;/P&gt;&lt;P&gt;Manually, I can "save as" in .gif after I setup &amp;amp; run the animation controls.&lt;/P&gt;&lt;P&gt;I think this type of analysis also can be automated through JSL.&lt;/P&gt;&lt;P&gt;So I export the dashboard script to script window while running the animation, but the animation not running when I run the script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is;&lt;/P&gt;&lt;P&gt;- How to improve this script to straight away run the animation in JSL? --&amp;gt; Workflow did not capture "Run Animation" action so I don't have a clue.&lt;/P&gt;&lt;P&gt;- How to save the animated dashboard in JSL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also refer to other discussions below but the method is for graph builder whilst in my case it is dashboard.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/JMP-Scripts/Save-a-Data-Filter-animation-as-an-animated-GIF/ta-p/24003" target="_blank" rel="noopener"&gt;https://community.jmp.com/t5/JMP-Scripts/Save-a-Data-Filter-animation-as-an-animated-GIF/ta-p/24003&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Discussions/Saving-JMP-animation/m-p/37025" target="_blank" rel="noopener"&gt;https://community.jmp.com/t5/Discussions/Saving-JMP-animation/m-p/37025&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using JMP 17.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Dec 2023 03:39:19 GMT</pubDate>
    <dc:creator>WebDesignesCrow</dc:creator>
    <dc:date>2023-12-22T03:39:19Z</dc:date>
    <item>
      <title>How to save Dashboard to run animation (.gif) through JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-Dashboard-to-run-animation-gif-through-JSL/m-p/710994#M89466</link>
      <description>&lt;P&gt;Hello expert,&lt;/P&gt;&lt;P&gt;I want to save my Dashboard in .gif (animation) through JSL because "Date"&amp;nbsp;is not interactive in html.&lt;/P&gt;&lt;P&gt;The local data filter for animation is based on AVI date (date will change daily because data being refreshed).&lt;/P&gt;&lt;P&gt;Manually, I can "save as" in .gif after I setup &amp;amp; run the animation controls.&lt;/P&gt;&lt;P&gt;I think this type of analysis also can be automated through JSL.&lt;/P&gt;&lt;P&gt;So I export the dashboard script to script window while running the animation, but the animation not running when I run the script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is;&lt;/P&gt;&lt;P&gt;- How to improve this script to straight away run the animation in JSL? --&amp;gt; Workflow did not capture "Run Animation" action so I don't have a clue.&lt;/P&gt;&lt;P&gt;- How to save the animated dashboard in JSL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also refer to other discussions below but the method is for graph builder whilst in my case it is dashboard.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/JMP-Scripts/Save-a-Data-Filter-animation-as-an-animated-GIF/ta-p/24003" target="_blank" rel="noopener"&gt;https://community.jmp.com/t5/JMP-Scripts/Save-a-Data-Filter-animation-as-an-animated-GIF/ta-p/24003&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Discussions/Saving-JMP-animation/m-p/37025" target="_blank" rel="noopener"&gt;https://community.jmp.com/t5/Discussions/Saving-JMP-animation/m-p/37025&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using JMP 17.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 03:39:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-Dashboard-to-run-animation-gif-through-JSL/m-p/710994#M89466</guid>
      <dc:creator>WebDesignesCrow</dc:creator>
      <dc:date>2023-12-22T03:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to save Dashboard to run animation (.gif) through JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-Dashboard-to-run-animation-gif-through-JSL/m-p/714482#M89780</link>
      <description>&lt;P&gt;I'm updating my progress with the assistance from genius JMP technical support ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additional reference that is cool &amp;amp; useful&lt;/P&gt;&lt;P&gt;Local Data Filter Animation&lt;BR /&gt;&lt;A href="https://community.jmp.com/t5/Discussions/Local-Data-filter-amp-Animation-how-to-specify-the-range/td-p/623973" target="_blank"&gt;https://community.jmp.com/t5/Discussions/Local-Data-filter-amp-Animation-how-to-specify-the-range/td-p/623973&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Animated GIF&lt;BR /&gt;&lt;A href="https://community.jmp.com/t5/Uncharted/Animated-GIF-JMP-13/ba-p/21197" target="_blank"&gt;https://community.jmp.com/t5/Uncharted/Animated-GIF-JMP-13/ba-p/21197&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) For now, JSL can instruct the dashboard animation control to run using below codes.&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; // Play animation (button 2) ---&amp;gt; OK
 playbtn = window("DashboardName")["Local Data Filter", TabPageBox(1), ButtonBox(2)];
 playbtn &amp;lt;&amp;lt; Click();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2) Still working to record the animation &amp;amp; save to animated gif.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, the attempt using below codes causing JMP to crash - seems it starts recording (with clicking without release)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt; // Start to record animation (button 6) --&amp;gt; RUNNING BUT JMP CRASH BEFORE NEXT STEP
startrecordbtn = window("Sheet1_LEFTOUTER - Dashboard")["Local Data Filter", TabPageBox(1), ButtonBox(6)];
startrecordbtn &amp;lt;&amp;lt; Click();
wait(1.5);

 // Stop to record animation (button 6)
stoprecordbtn = window("Sheet1_LEFTOUTER - Dashboard")["Local Data Filter", TabPageBox(1), ButtonBox(6)];
stoprecordbtn &amp;lt;&amp;lt; Click();
wait(1);

 // Save recorded animation (button 7)
saveanimation = window("Sheet1_LEFTOUTER - Dashboard")["Local Data Filter", TabPageBox(1), ButtonBox(7)];
saveanimation &amp;lt;&amp;lt; Click();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WebDesignesCrow_0-1704864849520.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60238iB6C3BE7F55C98084/image-size/medium?v=v2&amp;amp;px=400" role="button" title="WebDesignesCrow_0-1704864849520.png" alt="WebDesignesCrow_0-1704864849520.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 05:34:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-Dashboard-to-run-animation-gif-through-JSL/m-p/714482#M89780</guid>
      <dc:creator>WebDesignesCrow</dc:creator>
      <dc:date>2024-01-10T05:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to save Dashboard to run animation (.gif) through JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-Dashboard-to-run-animation-gif-through-JSL/m-p/716958#M89863</link>
      <description>&lt;P&gt;All attempts for "Record" &amp;amp; "Save as animated GIF" instruction via JSL ended with crash even with simpler script.&lt;/P&gt;&lt;P&gt;I've submitted crash report as advised from JMP technical support (Both JMP 17.0 &amp;amp; 17.2 crash. I'm using Windows 10).&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt = open("$SAMPLE_DATA/Big Class.jmp")
dt &amp;lt;&amp;lt; Graph Builder(
        Size( 588, 528 ),
        Show Control Panel( 0 ),
        Variables( X( :age ), Y( :sex ) ),
        Elements( Heatmap( X, Y, Legend( 2 ) ) ),
        Local Data Filter(
               Conditional,
               Add Filter(
                       columns( :age ),
                       Where( :age == 14 ),
                       Display( :age, N Items( 6 ) )
               ),
               Animation( Animate Column( :age ) )
        )
);
playbtn = Window("Big Class - Graph Builder")["Local Data Filter",TabPageBox(1),ButtonBox(2)];

recordbtn = Window("Big Class - Graph Builder")["Local Data Filter",TabPageBox(1),ButtonBox(6)];

// Test play
print("starting play test");
playbtn &amp;lt;&amp;lt; click();
wait(2);
playbtn &amp;lt;&amp;lt; click();
print("ending play test");
wait(2);
// Test record
print("starting record test");
recordbtn &amp;lt;&amp;lt; set(1);
playbtn &amp;lt;&amp;lt; click();
wait(2);
playbtn &amp;lt;&amp;lt; click();
recordbtn &amp;lt;&amp;lt; set(0);
print("ending play test");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hopefully, JMP 18 will consider this improvement so that animated GIF can be recorded &amp;amp; saved automatically (since it can be done by clicking using hand without crash)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 02:15:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-Dashboard-to-run-animation-gif-through-JSL/m-p/716958#M89863</guid>
      <dc:creator>WebDesignesCrow</dc:creator>
      <dc:date>2024-01-15T02:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to save Dashboard to run animation (.gif) through JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-Dashboard-to-run-animation-gif-through-JSL/m-p/729271#M91163</link>
      <description>&lt;P&gt;Hm, don't know if Jmp 18 will solve the issue ...&lt;BR /&gt;Also Jmp18 EA crashes with the code above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you need a gif or is it OK to get individual screenshot of all steps?&lt;/P&gt;&lt;P&gt;For the latter, you could write a script which clicks on each entry in the data filter and then saves the corresponding graph as an image.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Such a function is included in the&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;LI-MESSAGE title="Graph Builder Toolbar" uid="565466" url="https://community.jmp.com/t5/JMP-Add-Ins/Graph-Builder-Toolbar/m-p/565466#U565466" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&lt;SPAN&gt;&amp;nbsp;- but I just noticed that I did not update the version in the community for a while. -&amp;gt; I just uploaded it now,&amp;nbsp;&lt;/SPAN&gt;but the review process will take a while&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6348013141112w842h540r466" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6348013141112" data-account="6058004218001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058004218001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6348013141112w842h540r466');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.jmp.com/t5/video/gallerypage/video-id/6348013141112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 17:05:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-Dashboard-to-run-animation-gif-through-JSL/m-p/729271#M91163</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-03-01T17:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to save Dashboard to run animation (.gif) through JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-Dashboard-to-run-animation-gif-through-JSL/m-p/729588#M91216</link>
      <description>&lt;P&gt;Hi Hogi,&lt;/P&gt;&lt;P&gt;Basically, I just a need an animated gif.&lt;/P&gt;&lt;P&gt;My thought processes is; to let JMP imitate my manual clicking through JSL.&lt;/P&gt;&lt;P&gt;But, workflow or log did not save "record" click activity so that I can save as animated .gif.&lt;/P&gt;&lt;P&gt;The best I could do now is to automate Dashboard "run". (not able to solve record GIF &amp;gt; save as animated GIF).&lt;/P&gt;&lt;P&gt;For "clicking each entry in data filter", it may work if it use BigClass data (data filter = category).&lt;/P&gt;&lt;P&gt;But, my actual data filter for the dashboard is&amp;nbsp; date. My animated dashboard example as below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnimatedDashboard.gif" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61774iF711EBF883E62163/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AnimatedDashboard.gif" alt="AnimatedDashboard.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;If there's a workaround, I would be extremely grateful because I need to automate the flow until animated .GIF.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 06:46:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-Dashboard-to-run-animation-gif-through-JSL/m-p/729588#M91216</guid>
      <dc:creator>WebDesignesCrow</dc:creator>
      <dc:date>2024-03-04T06:46:47Z</dc:date>
    </item>
  </channel>
</rss>

