<?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 refresh/update (main/jmp) menu on jmp startup? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-refresh-update-main-jmp-menu-on-jmp-startup/m-p/352192#M60150</link>
    <description>&lt;P&gt;I developed a large system of Addins(when I was a worker bee, and not a senior golfer) that automatically kept the Addins updated.&amp;nbsp; What I found was that copying the JSL etc. into the Addins directory was very fast, and that what I ended up doing, was setting up the Addins to always copy the JSL from the global repository into Addins directory, and then run the JSL.&amp;nbsp; I did not have to ask the users to reinstall, and the users always had the latest code.&amp;nbsp; It really simplified the administration.&lt;/P&gt;</description>
    <pubDate>Sat, 23 Jan 2021 16:20:34 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2021-01-23T16:20:34Z</dc:date>
    <item>
      <title>How to refresh/update (main/jmp) menu on jmp startup?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-refresh-update-main-jmp-menu-on-jmp-startup/m-p/351780#M60127</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;currently I'm working on an update function for my addins. I used the following guide as guidance:&lt;/P&gt;
&lt;P&gt;&lt;LI-MESSAGE title="How to write self-updating JMP add-ins" uid="21932" url="https://community.jmp.com/t5/JMP-Scripts/How-to-write-self-updating-JMP-add-ins/m-p/21932#U21932" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Everything works perfectly - but currently I'm struggeling with the next step.&lt;BR /&gt;I was wondering if it's possible to dynamicly "toggle" the update button depending if a update is available or not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried using the script start-up function found here:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/15.2/index.shtml#page/jmp/run-a-script-at-start-up.shtml" target="_blank" rel="noopener"&gt;https://www.jmp.com/support/help/en/15.2/index.shtml#page/jmp/run-a-script-at-start-up.shtml&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;... to manipulate the addin.jmpcust file. However the menu seems to load before the script is executed - so you need to restart jmp again for seeing the changes.&lt;BR /&gt;&lt;BR /&gt;So my question: Is there a way to refresh/update the main menu, or maybe a better possibility to achieve my goal?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;BR /&gt;DG&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:04:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-refresh-update-main-jmp-menu-on-jmp-startup/m-p/351780#M60127</guid>
      <dc:creator>D_G</dc:creator>
      <dc:date>2023-06-09T22:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh/update (main/jmp) menu on jmp startup?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-refresh-update-main-jmp-menu-on-jmp-startup/m-p/352167#M60144</link>
      <description>&lt;P&gt;Not a direct answer to your question, but have you checked out great Add-In-Manager by &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1855"&gt;@Justin_Chilton&lt;/a&gt;&amp;nbsp;:&amp;nbsp;&lt;LI-MESSAGE title="Add-In Manager" uid="43736" url="https://community.jmp.com/t5/JMP-Add-Ins/Add-In-Manager/m-p/43736#U43736" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(You could also take a peek to Add-In-Managers code to see how it handles updating the addins when run)&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 13:09:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-refresh-update-main-jmp-menu-on-jmp-startup/m-p/352167#M60144</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-01-25T13:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh/update (main/jmp) menu on jmp startup?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-refresh-update-main-jmp-menu-on-jmp-startup/m-p/352192#M60150</link>
      <description>&lt;P&gt;I developed a large system of Addins(when I was a worker bee, and not a senior golfer) that automatically kept the Addins updated.&amp;nbsp; What I found was that copying the JSL etc. into the Addins directory was very fast, and that what I ended up doing, was setting up the Addins to always copy the JSL from the global repository into Addins directory, and then run the JSL.&amp;nbsp; I did not have to ask the users to reinstall, and the users always had the latest code.&amp;nbsp; It really simplified the administration.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2021 16:20:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-refresh-update-main-jmp-menu-on-jmp-startup/m-p/352192#M60150</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-01-23T16:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh/update (main/jmp) menu on jmp startup?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-refresh-update-main-jmp-menu-on-jmp-startup/m-p/352451#M60181</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for the feedback. I could not find anything in the Add-In-Manager.&lt;BR /&gt;I guess an forced update might be an option - but I'm still trying to create an "variable" Add-In menu item.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I think I found a workaround - if you execute the "addin.def" file within the addin directory, the menu items are updated.&lt;/P&gt;&lt;P&gt;So I created a .jsl file in the addin directory with the following lines:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//!
Delete Symbols();
NamesDefaultToHere(1);

PTH_ADDIN = Get Path Variable("ADDIN_HOME(com. ...)");
FN_ADDIN = Convert File Path(PTH_ADDIN  || "addin.def", Windows);

If(File Exists(FN_ADDIN ),
	Open(FN_ADDIN , JMP);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;With the leading "//!" the script runs on opening.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I now check within my addinLoad.jsl file if/how the menu item should be changed and edit my ".jmpcust" file.&lt;BR /&gt;Afterwards I send a CMD to start/execute my .jsl file showed above -&amp;gt; the menu items are getting updated on startup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe there is a better way - however it works (and actually it's pretty fast).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR, DG&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 13:44:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-refresh-update-main-jmp-menu-on-jmp-startup/m-p/352451#M60181</guid>
      <dc:creator>D_G</dc:creator>
      <dc:date>2021-01-25T13:44:46Z</dc:date>
    </item>
  </channel>
</rss>

