<?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: How to construct a JMP add-in to run a floating window with click boxes for different sequentially dependent scripts? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-construct-a-JMP-add-in-to-run-a-floating-window-with/m-p/644848#M84147</link>
    <description>&lt;P&gt;In addition to what &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp; suggested, you can control the activity of a button with &amp;lt;&amp;lt; Enabled(0|1)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
New Window("Example",
	Button Box("Run trend Study", Print("Place the trend study script here")),
	Button Box("Run corrStudyStudy", Print("Place the corrStudy script here"), &amp;lt;&amp;lt;Enabled(0))
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;How to close all tables / graphs / windows and how to pass correct tables to corrStudy depends on how you have built your main scripts&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2023 17:13:48 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2023-06-21T17:13:48Z</dc:date>
    <item>
      <title>How to construct a JMP add-in to run a floating window with click boxes for different sequentially dependent scripts?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-construct-a-JMP-add-in-to-run-a-floating-window-with/m-p/644772#M84141</link>
      <description>&lt;P&gt;I have two main scripts (1) &lt;STRONG&gt;trendStudy&lt;/STRONG&gt;&amp;nbsp;(2) &lt;STRONG&gt;corrStudy&lt;/STRONG&gt;, both of which call a bunch of other scripts but &lt;STRONG&gt;corrStudy&lt;/STRONG&gt;&amp;nbsp;does not call any scripts which &lt;STRONG&gt;trendStudy&lt;/STRONG&gt;&amp;nbsp;calls.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;trendStudy&lt;/STRONG&gt; produces a data table and a chart. &lt;STRONG&gt;corrStudy&lt;/STRONG&gt;&amp;nbsp;needs to use the data table created by &lt;STRONG&gt;trendStudy&lt;/STRONG&gt;. Both set of scripts are working.&lt;/P&gt;&lt;P&gt;I want to have these two scripts built into a JMP add-in in the following way.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;When the add-in is started, a small floating window (always visible) appears with two click button boxes showing [&lt;STRONG&gt;Run trendStudy&amp;nbsp;(Trend Plots)&lt;/STRONG&gt;] and below it [&lt;STRONG&gt;Run corrStudy (Correlation Study)&lt;/STRONG&gt;].&lt;/LI&gt;&lt;LI&gt;Clicking on &lt;STRONG&gt;Run trendStudy&lt;/STRONG&gt;&amp;nbsp;button box only runs the &lt;STRONG&gt;trendStudy&lt;/STRONG&gt;&amp;nbsp;(and associated scripts) producing a trend chart and data table.&lt;/LI&gt;&lt;LI&gt;Clicking on &lt;STRONG&gt;corrStudy&lt;/STRONG&gt;&amp;nbsp;button box runs &lt;STRONG&gt;corrStudy&lt;/STRONG&gt;&amp;nbsp;(and associated scripts) to produce the correlation study plots.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;corrStudy&lt;/STRONG&gt; does not run if &lt;STRONG&gt;trendStudy&lt;/STRONG&gt;&amp;nbsp;has not been run and throws a warning "Run &lt;STRONG&gt;trendStudy&lt;/STRONG&gt; first!"&lt;/LI&gt;&lt;LI&gt;Closing the add-in window closes all open data-tables and chart windows with a warning such as "This will close all open tables and charts"&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;How to build such a JMP add in (I am especially struggling to understand how to separate the two&amp;nbsp;&lt;STRONG&gt;trendStudy&lt;/STRONG&gt; and &lt;STRONG&gt;corrStudy&lt;/STRONG&gt;)?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 14:09:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-construct-a-JMP-add-in-to-run-a-floating-window-with/m-p/644772#M84141</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-06-21T14:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to construct a JMP add-in to run a floating window with click boxes for different sequentially dependent scripts?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-construct-a-JMP-add-in-to-run-a-floating-window-with/m-p/644819#M84143</link>
      <description>&lt;P&gt;Here is an example of the structure to use to run one script or another&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1687362094654.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/54002iB822A923D07FEF47/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1687362094654.png" alt="txnelson_0-1687362094654.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
New Window( "Example",
	Button Box( "Run trend Study", Print( "Place the trend study script here" ) ),
	Button Box( "Run corrStudyStudy", Print( "Place the corrStudy script here" ) )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Jun 2023 15:41:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-construct-a-JMP-add-in-to-run-a-floating-window-with/m-p/644819#M84143</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-06-21T15:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to construct a JMP add-in to run a floating window with click boxes for different sequentially dependent scripts?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-construct-a-JMP-add-in-to-run-a-floating-window-with/m-p/644848#M84147</link>
      <description>&lt;P&gt;In addition to what &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp; suggested, you can control the activity of a button with &amp;lt;&amp;lt; Enabled(0|1)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
New Window("Example",
	Button Box("Run trend Study", Print("Place the trend study script here")),
	Button Box("Run corrStudyStudy", Print("Place the corrStudy script here"), &amp;lt;&amp;lt;Enabled(0))
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;How to close all tables / graphs / windows and how to pass correct tables to corrStudy depends on how you have built your main scripts&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 17:13:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-construct-a-JMP-add-in-to-run-a-floating-window-with/m-p/644848#M84147</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-06-21T17:13:48Z</dc:date>
    </item>
  </channel>
</rss>

