<?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: Run several dynamic user interface in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Make-included-scripts-have-their-own-context-Run-several-dynamic/m-p/906020#M106439</link>
    <description>&lt;P&gt;Thanks! Adding &amp;lt;&amp;lt;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;New Context, solved the issue. :)&lt;/img&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 05 Oct 2025 09:10:12 GMT</pubDate>
    <dc:creator>AdamChoen</dc:creator>
    <dc:date>2025-10-05T09:10:12Z</dc:date>
    <item>
      <title>Make included scripts have their own context (Run several dynamic user interface)</title>
      <link>https://community.jmp.com/t5/Discussions/Make-included-scripts-have-their-own-context-Run-several-dynamic/m-p/905966#M106429</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I have several dynamic UIs that I launch through script buttons on my journal.&lt;/P&gt;
&lt;P data-start="230" data-end="390"&gt;Each button simply runs an &lt;CODE data-start="338" data-end="349"&gt;Include()&lt;/CODE&gt; of the relevant JSL file, for example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Set Function(Include(
	"....\UIs\xxx_StationMonitor_Raw.jsl")
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When I launch a second UI, the first one is no longer dynamic (its interactivity stops responding).&lt;/P&gt;
&lt;P data-start="596" data-end="712"&gt;However, if I open both JSL files directly in JMP and run them manually, both remain fully dynamic and responsive.&lt;/P&gt;
&lt;P data-start="714" data-end="944"&gt;It seems that running multiple includes from a journal somehow causes them to “override” each other’s state.&lt;BR data-start="822" data-end="825" /&gt;Is there a recommended way to launch multiple independent UI scripts from the same journal so that all remain active?&lt;/P&gt;
&lt;P data-start="946" data-end="962"&gt;Thanks,&lt;BR data-start="953" data-end="956" /&gt;Adam&lt;/P&gt;</description>
      <pubDate>Sun, 05 Oct 2025 18:32:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Make-included-scripts-have-their-own-context-Run-several-dynamic/m-p/905966#M106429</guid>
      <dc:creator>AdamChoen</dc:creator>
      <dc:date>2025-10-05T18:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Run several dynamic user interface</title>
      <link>https://community.jmp.com/t5/Discussions/Make-included-scripts-have-their-own-context-Run-several-dynamic/m-p/905976#M106430</link>
      <description>&lt;P&gt;I think the included JSL scripts are probably all sharing the journal's window context (which means they share JSL variables). Compare that to opening each script in its own window...each script has its own context from its JSL window.&lt;/P&gt;
&lt;P&gt;If that sounds right, probably a small example (two scripts and a journal) will help someone suggest an answer that won't require a lot of re-work.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Oct 2025 21:30:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Make-included-scripts-have-their-own-context-Run-several-dynamic/m-p/905976#M106430</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2025-10-04T21:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Run several dynamic user interface</title>
      <link>https://community.jmp.com/t5/Discussions/Make-included-scripts-have-their-own-context-Run-several-dynamic/m-p/906014#M106437</link>
      <description>&lt;P&gt;Include() does offer some optional arguments which can sometimes be helpful: &amp;lt;&amp;lt; New Context and &amp;lt;&amp;lt; Names Default To Here, (&lt;A href="https://www.jmp.com/support/help/en/18.2/#page/jmp/programming-functions.shtml?os=win&amp;amp;source=application#ww5015591" target="_blank" rel="noopener"&gt;Include("pathname", &amp;lt;named arguments&amp;gt;&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/18.2/#page/jmp/include-a-script.shtml#ww306193" target="_blank" rel="noopener"&gt; Scripting Guide &amp;gt; Programming Methods &amp;gt; Advanced Programming Concepts &amp;gt; Include a Script&lt;/A&gt;&amp;nbsp;) but I'm not sure if these are the solution for the issue you are having.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like Craige suggested, sharing some examples will make it easier to provide ideas.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Oct 2025 07:20:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Make-included-scripts-have-their-own-context-Run-several-dynamic/m-p/906014#M106437</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-10-05T07:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Run several dynamic user interface</title>
      <link>https://community.jmp.com/t5/Discussions/Make-included-scripts-have-their-own-context-Run-several-dynamic/m-p/906019#M106438</link>
      <description>&lt;P&gt;---deleted---&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Oct 2025 14:03:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Make-included-scripts-have-their-own-context-Run-several-dynamic/m-p/906019#M106438</guid>
      <dc:creator>AdamChoen</dc:creator>
      <dc:date>2025-10-05T14:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Run several dynamic user interface</title>
      <link>https://community.jmp.com/t5/Discussions/Make-included-scripts-have-their-own-context-Run-several-dynamic/m-p/906020#M106439</link>
      <description>&lt;P&gt;Thanks! Adding &amp;lt;&amp;lt;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;New Context, solved the issue. :)&lt;/img&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Oct 2025 09:10:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Make-included-scripts-have-their-own-context-Run-several-dynamic/m-p/906020#M106439</guid>
      <dc:creator>AdamChoen</dc:creator>
      <dc:date>2025-10-05T09:10:12Z</dc:date>
    </item>
  </channel>
</rss>

