<?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: JMP Addin Enable/Disable - JSL code to do this? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JMP-Addin-Enable-Disable-JSL-code-to-do-this/m-p/485762#M72958</link>
    <description>&lt;P&gt;Excellent!&amp;nbsp; That works great.&amp;nbsp; Thanks for sharing this!&amp;nbsp; DJ&lt;/P&gt;</description>
    <pubDate>Tue, 10 May 2022 15:37:12 GMT</pubDate>
    <dc:creator>djhanson</dc:creator>
    <dc:date>2022-05-10T15:37:12Z</dc:date>
    <item>
      <title>JMP Addin Enable/Disable - JSL code to do this?</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Addin-Enable-Disable-JSL-code-to-do-this/m-p/485476#M72943</link>
      <description>&lt;P&gt;Is there any JSL code/command that can toggle a JMP Addin to Enable/Disable?&amp;nbsp;&lt;BR /&gt;(note: I do not mean Register/Unregister in this case)&lt;BR /&gt;&lt;BR /&gt;This enabling/disabling can be done manually in View &amp;gt; Add-ins with the Enable checkbox, but I need JSL code to control this in my application.&amp;nbsp; I also looked into loading the "addinRegistry.xml" as a text file and replacing the last string of "autoLoad="false"" with nothing and saving it, but the issue is that JMP overwrites the xml when it closes and will just overwrite any change I make to it.&amp;nbsp; And I would rather not have to mess with the .xml of course.&amp;nbsp; I also realize there is a JSL command as "Register Addin()" with its attribute &amp;lt;&amp;lt;LoadsAtStartup(0) ...but this doesn't seem to disable the Addin and it launches the addin again.&amp;nbsp; (unless I was doing something wrong)&amp;nbsp; Any other ideas?&amp;nbsp; thanks, DJ&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:58:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Addin-Enable-Disable-JSL-code-to-do-this/m-p/485476#M72943</guid>
      <dc:creator>djhanson</dc:creator>
      <dc:date>2023-06-09T16:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Addin Enable/Disable - JSL code to do this?</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Addin-Enable-Disable-JSL-code-to-do-this/m-p/485495#M72944</link>
      <description>&lt;P&gt;You can do this -- it is not immediately clear how as it is named different from the GUI, but this is what you'd do if you have an addin of ID "com.mycompany.jmpaddin"&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
addin = Get Addin( "com.mycompany.myaddin" );
addin &amp;lt;&amp;lt; Unload // to "unregister"
addin &amp;lt;&amp;lt; Load // to "register"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I don't see any documentation for this though, got it through trial and error...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And just to state -- unloading an addin does not get rid of any namespaces / classes / global variables set by the addin.&amp;nbsp; It just get's rid of any menu customizations and prevents it from loading when JMP starts next.&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 02:50:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Addin-Enable-Disable-JSL-code-to-do-this/m-p/485495#M72944</guid>
      <dc:creator>ErraticAttack</dc:creator>
      <dc:date>2022-05-10T02:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Addin Enable/Disable - JSL code to do this?</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Addin-Enable-Disable-JSL-code-to-do-this/m-p/485762#M72958</link>
      <description>&lt;P&gt;Excellent!&amp;nbsp; That works great.&amp;nbsp; Thanks for sharing this!&amp;nbsp; DJ&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 15:37:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Addin-Enable-Disable-JSL-code-to-do-this/m-p/485762#M72958</guid>
      <dc:creator>djhanson</dc:creator>
      <dc:date>2022-05-10T15:37:12Z</dc:date>
    </item>
  </channel>
</rss>

