cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-485476%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EJMP-Add-In%20aktivieren%2Fdeaktivieren%20%E2%80%93%20JSL-Code%20daf%C3%BCr%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-485476%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EGibt%20es%20einen%20JSL-Code%2FBefehl%2C%20der%20ein%20JMP-Add-In%20aktivieren%2Fdeaktivieren%20kann%3F%3CBR%20%2F%3E(Hinweis%3A%20Ich%20meine%20in%20diesem%20Fall%20nicht%20Registrieren%2FAbmelden)%3CBR%20%2F%3E%3CBR%20%2F%3E%20Diese%20Aktivierung%2FDeaktivierung%20kann%20manuell%20unter%20%E2%80%9EAnsicht%E2%80%9C%20%26gt%3B%20%E2%80%9EAdd-Ins%E2%80%9C%20mit%20dem%20Kontrollk%C3%A4stchen%20%E2%80%9EAktivieren%E2%80%9C%20erfolgen%2C%20aber%20ich%20ben%C3%B6tige%20JSL-Code%2C%20um%20dies%20in%20meiner%20Anwendung%20zu%20steuern.Ich%20habe%20auch%20dar%C3%BCber%20nachgedacht%2C%20%E2%80%9EaddinRegistry.xml%E2%80%9C%20als%20Textdatei%20zu%20laden%20und%20die%20letzte%20Zeichenfolge%20von%20%E2%80%9EautoLoad%3D%22false%22%E2%80%9C%20durch%20nichts%20zu%20ersetzen%20und%20zu%20speichern%2C%20aber%20das%20Problem%20ist%2C%20dass%20JMP%20die%20XML-Datei%20beim%20Schlie%C3%9Fen%20%C3%BCberschreibt%20und%20einfach%20%C3%BCberschreibt%20jede%20%C3%84nderung%2C%20die%20ich%20daran%20vornehme.Und%20ich%20m%C3%B6chte%20mich%20nat%C3%BCrlich%20lieber%20nicht%20mit%20der%20XML-Datei%20herumschlagen.Mir%20ist%20auch%20klar%2C%20dass%20es%20einen%20JSL-Befehl%20wie%20%E2%80%9ERegister%20Addin()%E2%80%9C%20mit%20seinem%20Attribut%20%26lt%3B%3CLOADSATSTARTUP%3E%3C%2FLOADSATSTARTUP%3E%3CLINGO-LABS%20id%3D%22lingo-labs-485476%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3EErweiterte%20statistische%20Modellierung%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EVerbraucher-%20und%20Marktforschung%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EInhaltsorganisation%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDatenzugriff%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDatenexploration%20und%20-visualisierung%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EVersuchsplanung%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EQualit%C3%A4ts-%20und%20Verfahrenstechnik%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EErgebnisse%20teilen%20und%20kommunizieren%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-485762%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20JMP-Add-In%20aktivieren%2Fdeaktivieren%20%E2%80%93%20JSL-Code%20daf%C3%BCr%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-485762%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3C%2FLINGO-BODY%3E%3C%2FP%3E%3CP%3EExzellent!Das%20funktioniert%20super.Vielen%20Dank%20f%C3%BCrs%20Teilen!DJ%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-485495%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20JMP-Add-In%20aktivieren%2Fdeaktivieren%20%E2%80%93%20JSL-Code%20daf%C3%BCr%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-485495%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ESie%20k%C3%B6nnen%20dies%20tun%20%E2%80%93%20es%20ist%20nicht%20sofort%20klar%2C%20wie%20sich%20der%20Name%20von%20der%20GUI%20unterscheidet%2C%20aber%20Sie%20w%C3%BCrden%20dies%20tun%2C%20wenn%20Sie%20ein%20Add-In%20mit%20der%20ID%20%E2%80%9Ecom.mycompany.jmpaddin%E2%80%9C%20haben.%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0Aaddin%20%3D%20Get%20Addin(%20%22com.mycompany.myaddin%22%20)%3B%0Aaddin%20%26lt%3B%26lt%3B%20Unload%20%2F%2F%20to%20%22unregister%22%0Aaddin%20%26lt%3B%26lt%3B%20Load%20%2F%2F%20to%20%22register%22%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EIch%20sehe%20jedoch%20keine%20Dokumentation%20daf%C3%BCr%2C%20habe%20es%20durch%20Versuch%20und%20Irrtum%20geschafft%20...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUnd%20nur%20um%20es%20festzuhalten%3A%20Durch%20das%20Entladen%20eines%20Add-Ins%20werden%20keine%20vom%20Add-In%20festgelegten%20Namespaces%2FKlassen%2Fglobalen%20Variablen%20entfernt.Es%20entfernt%20lediglich%20alle%20Men%C3%BCanpassungen%20und%20verhindert%2C%20dass%20es%20geladen%20wird%2C%20wenn%20JMP%20das%20n%C3%A4chste%20Mal%20gestartet%20wird.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
djhanson
Level V

JMP Addin Enable/Disable - JSL code to do this?

Is there any JSL code/command that can toggle a JMP Addin to Enable/Disable? 
(note: I do not mean Register/Unregister in this case)

This enabling/disabling can be done manually in View > Add-ins with the Enable checkbox, but I need JSL code to control this in my application.  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.  And I would rather not have to mess with the .xml of course.  I also realize there is a JSL command as "Register Addin()" with its attribute <<LoadsAtStartup(0) ...but this doesn't seem to disable the Addin and it launches the addin again.  (unless I was doing something wrong)  Any other ideas?  thanks, DJ

1 ACCEPTED SOLUTION

Accepted Solutions
ErraticAttack
Level VI

Re: JMP Addin Enable/Disable - JSL code to do this?

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"

Names Default To Here( 1 );
addin = Get Addin( "com.mycompany.myaddin" );
addin << Unload // to "unregister"
addin << Load // to "register"

I don't see any documentation for this though, got it through trial and error...

 

And just to state -- unloading an addin does not get rid of any namespaces / classes / global variables set by the addin.  It just get's rid of any menu customizations and prevents it from loading when JMP starts next.

Jordan

View solution in original post

2 REPLIES 2
ErraticAttack
Level VI

Re: JMP Addin Enable/Disable - JSL code to do this?

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"

Names Default To Here( 1 );
addin = Get Addin( "com.mycompany.myaddin" );
addin << Unload // to "unregister"
addin << Load // to "register"

I don't see any documentation for this though, got it through trial and error...

 

And just to state -- unloading an addin does not get rid of any namespaces / classes / global variables set by the addin.  It just get's rid of any menu customizations and prevents it from loading when JMP starts next.

Jordan
djhanson
Level V

Re: JMP Addin Enable/Disable - JSL code to do this?

Excellent!  That works great.  Thanks for sharing this!  DJ

Recommended Articles