<?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: Dashboard not updating as expected. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Dashboard-not-updating-as-expected/m-p/225076#M44723</link>
    <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4587"&gt;@danschikore&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks again Dan for providing me with the solution. Works perfectly for me. Much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/706"&gt;@stan_koprowski&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stan, thanks so much for explaining to me at the level that I so needed. Extremely patient &amp;amp; helpful. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 08 Sep 2019 08:21:59 GMT</pubDate>
    <dc:creator>kom</dc:creator>
    <dc:date>2019-09-08T08:21:59Z</dc:date>
    <item>
      <title>Dashboard not updating as expected.</title>
      <link>https://community.jmp.com/t5/Discussions/Dashboard-not-updating-as-expected/m-p/224420#M44608</link>
      <description>&lt;P&gt;Hi all. I'm running 3 simple &amp;amp; identical scripts to create SPC charts for Operators. The idea is that they'll enter basic test results, click one button and then observe for shifts/trends/outliers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rather than displaying all of the data on the charts, the scripts are setup to show just the last 30 datapoints on the SPC charts. When I add (say) 10 more rows of data, the scripts move on as planned, and life is good. I've created a simple dashboard (my first) to display all 3 SPC charts side by side. Each time I run the script for the 1st time, it looks exactly like I want it to look, i.e. each of the 3 charts display the last 30 datapoints.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I add (say) 10 rows of data to my data table &amp;amp; run the script again, the 3 charts in the dashboard don't move on automatically as they do when I run the scripts individually (outside of the dashboard). The data has been added to the charts in the dashboard, but I can only see the data by manually sliding the X-axis. Am I missing something obvious here?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 14:11:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Dashboard-not-updating-as-expected/m-p/224420#M44608</guid>
      <dc:creator>kom</dc:creator>
      <dc:date>2019-09-03T14:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard not updating as expected.</title>
      <link>https://community.jmp.com/t5/Discussions/Dashboard-not-updating-as-expected/m-p/224674#M44651</link>
      <description>&lt;P&gt;Your script dynamically sets the Min/Max of the x axis based on nrows():&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;	Dispatch(
		{},
		"label",
		ScaleBox,
		{Min( nrows()-30 ), Max( nrows()+3 ), Inc( 1 ), Minor Ticks( 0 )}
	),
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When a report is added to Dashboard Builder (or Combine Windows), the script that it captures is the same as you would see with &amp;lt;&amp;lt;Save Script to Script Window, which has hardcoded parameters:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;	Dispatch(
		{},
		"label",
		ScaleBox,
		{Min( 24 ), Max( 57 ), Inc( 1 ), Minor Ticks( 0 )}
	),
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It is possible to edit Platform scripts in Dashboard Builder, but that will not help in this case because every time the script is saved it will recapture the script again.&amp;nbsp; This is necessary in order to incorporate changes like open/close of outlines, or other changes that have been made while in preview mode.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, the easiest solution might be to edit the dashboard script directly.&amp;nbsp; If you are saving a .jmpapp / .jmpappsource file, you can just edit this file with any text editor.&amp;nbsp; If you are saving to a table script, it maybe best to use Save Script to Script Window for the Dashboard, edit the script, and then copy/paste into a table script.&amp;nbsp; Note that if you use Save Script to Script Window, the syntax of the script will be &lt;FONT face="courier new,courier"&gt;JMPApp(...) &amp;lt;&amp;lt; Edit&lt;/FONT&gt;.&amp;nbsp; Change this to &lt;FONT face="courier new,courier"&gt;JMPApp(...) &amp;lt;&amp;lt; Run&lt;/FONT&gt; to create a dashboard that will run the analysis rather than opening the Dashboard Builder.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 13:43:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Dashboard-not-updating-as-expected/m-p/224674#M44651</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2019-09-04T13:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard not updating as expected.</title>
      <link>https://community.jmp.com/t5/Discussions/Dashboard-not-updating-as-expected/m-p/224971#M44702</link>
      <description>&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;Many thanks for taking the time to reply to my query. It's unfortunate that the Dasboard won't work the way I had assumed it would. I'm not gonna lie, it'll probably take me a while to figure out your last suggestion of editing the Dashboard script directly. I had found the Dashboard script entry screen and had added a 'Maximise Window' command, but since there wasn't really any other code in there, I assumed that the Dashboard function would just display the output that the original scripts created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your last paragraph reads a little like egyptian hieroglyphics to me, so I will take my time and try to fumble my way through your suggestion.&lt;/P&gt;&lt;P&gt;I'm guessing that by the unusually quiet responses to my query, no-one else has any other ideas!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;Kieran&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 08:39:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Dashboard-not-updating-as-expected/m-p/224971#M44702</guid>
      <dc:creator>kom</dc:creator>
      <dc:date>2019-09-06T08:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard not updating as expected.</title>
      <link>https://community.jmp.com/t5/Discussions/Dashboard-not-updating-as-expected/m-p/225024#M44709</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/13697"&gt;@kom&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4587"&gt;@danschikore&lt;/a&gt;&amp;nbsp;mentioned, for your particular case, you simply need to edit and replace 3 single lines of code.&lt;/P&gt;
&lt;P&gt;The code has already been written previously.&lt;/P&gt;
&lt;P&gt;From within the dashboard click the top most red triangle and select Save Script &amp;gt;&amp;gt;To Script Window&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="Save Script to To Script Window" style="width: 315px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/19171i7977F82237B1259B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2019-09-06 16.28.50.png" alt="Save Script to To Script Window" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Save Script to To Script Window&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And then Replace this line of code in each of the reports ( if you have the line numbers enabled for the script editor the lines are 87, 187 and 276)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;{Min( 24 ), Max( 57 ), Inc( 1 ), Minor Ticks( 0 )}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;with this line of code&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;{Min( nrows()-30 ), Max( nrows()+3 ), Inc( 1 ), Minor Ticks( 0 )}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And then replace line 536 the very last line&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;) &amp;lt;&amp;lt; Edit&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;with&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;) &amp;lt;&amp;lt; Run&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Copy the entire contents of the script window using Edit Select All. Edit Copy or Using keyboard shortcuts on PC ctrl+A and then ctrl C ( on the Mac Command+A and Command+C)&lt;/P&gt;
&lt;P&gt;Finally, then back in the data table you can click on the red triangle and select New Script.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Select New Script" style="width: 221px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/19172i4A29AFB8B9249550/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2019-09-06 16.32.53.png" alt="Select New Script" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Select New Script&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And paste the contents of the clipboard using Edit Paste or ctrl+v (Mac Command+v) into the Script section.&lt;/P&gt;
&lt;P&gt;Provide a name for the script and click "OK"&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="New Table Script" style="width: 621px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/19173i85452FC707F7E839/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2019-09-06 16.41.38.png" alt="New Table Script" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;New Table Script&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached the data table with the new table script and added a new row of output to the data table.&lt;/P&gt;
&lt;P&gt;Does this get you closer to what you want?&lt;/P&gt;
&lt;P&gt;cheers,&lt;/P&gt;
&lt;P&gt;Stan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: For the curious I am using the new JSL dark theme coming out in JMP 15 ( to be released fall 2019).&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-left" image-alt="JSL Dark Theme" style="width: 374px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/19176i71D819AFA8E9FD49/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2019-09-06 16.51.46.png" alt="JSL Dark Theme" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;JSL Dark Theme&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 20:54:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Dashboard-not-updating-as-expected/m-p/225024#M44709</guid>
      <dc:creator>stan_koprowski</dc:creator>
      <dc:date>2019-09-06T20:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard not updating as expected.</title>
      <link>https://community.jmp.com/t5/Discussions/Dashboard-not-updating-as-expected/m-p/225076#M44723</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4587"&gt;@danschikore&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks again Dan for providing me with the solution. Works perfectly for me. Much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/706"&gt;@stan_koprowski&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stan, thanks so much for explaining to me at the level that I so needed. Extremely patient &amp;amp; helpful. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Sep 2019 08:21:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Dashboard-not-updating-as-expected/m-p/225076#M44723</guid>
      <dc:creator>kom</dc:creator>
      <dc:date>2019-09-08T08:21:59Z</dc:date>
    </item>
  </channel>
</rss>

