<?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: Calling functions that are part of an application add-in in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Calling-functions-that-are-part-of-an-application-add-in/m-p/387231#M63754</link>
    <description>Since you are the author of the Addin, I suggest that you pull the functions you want to be able to share, into a separate script, and save it as an independent script within the Addin.  Then within the original script, you simply use an Include() to bring in the independent script.&lt;BR /&gt;For the non addin script, you will just use the method referenced by Ian, and get the directory the addin is save in, and then use an Include() to bring in the needed jsl that has the function in it.</description>
    <pubDate>Thu, 20 May 2021 15:59:09 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2021-05-20T15:59:09Z</dc:date>
    <item>
      <title>Calling functions that are part of an application add-in</title>
      <link>https://community.jmp.com/t5/Discussions/Calling-functions-that-are-part-of-an-application-add-in/m-p/387171#M63744</link>
      <description>&lt;P&gt;How can I call functions that are created in an application add-in?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, having the add-in ID "my_addin", I expect something like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Script in the add-in.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;foo = Function({x}, Return(x^2));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A script in a data table.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Try(
&amp;nbsp; &amp;nbsp; y = my_addin.foo(3);,
&amp;nbsp; &amp;nbsp; Throw("'my_addin' is not installed");
&amp;nbsp; &amp;nbsp; );

print(y); #9&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;# 9&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:30:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calling-functions-that-are-part-of-an-application-add-in/m-p/387171#M63744</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2023-06-10T23:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calling functions that are part of an application add-in</title>
      <link>https://community.jmp.com/t5/Discussions/Calling-functions-that-are-part-of-an-application-add-in/m-p/387190#M63746</link>
      <description>&lt;P&gt;Functions from installed Addins are not available in JSL until after the Addin has been run within the current JMP session, and then, one needs to know what NameSpace the Addin was run.&lt;/P&gt;
&lt;P&gt;However, you may be able to restructure the original Addin to allow other JSL scripts to Include() it into the current script when needed.&lt;/P&gt;
&lt;P&gt;Are you the author of the Addin where the function() you want to use is located?&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 13:39:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calling-functions-that-are-part-of-an-application-add-in/m-p/387190#M63746</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-05-20T13:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calling functions that are part of an application add-in</title>
      <link>https://community.jmp.com/t5/Discussions/Calling-functions-that-are-part-of-an-application-add-in/m-p/387193#M63747</link>
      <description>&lt;P&gt;Building on&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;'s thoughts, &lt;A href="https://community.jmp.com/t5/Discussions/addin-home-path-variable/td-p/39652" target="_self"&gt;this thread&lt;/A&gt; may be useful.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 13:52:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calling-functions-that-are-part-of-an-application-add-in/m-p/387193#M63747</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2021-05-20T13:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calling functions that are part of an application add-in</title>
      <link>https://community.jmp.com/t5/Discussions/Calling-functions-that-are-part-of-an-application-add-in/m-p/387230#M63753</link>
      <description>&lt;P&gt;Yes. I am the author of the add-in as well.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 15:53:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calling-functions-that-are-part-of-an-application-add-in/m-p/387230#M63753</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2021-05-20T15:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calling functions that are part of an application add-in</title>
      <link>https://community.jmp.com/t5/Discussions/Calling-functions-that-are-part-of-an-application-add-in/m-p/387231#M63754</link>
      <description>Since you are the author of the Addin, I suggest that you pull the functions you want to be able to share, into a separate script, and save it as an independent script within the Addin.  Then within the original script, you simply use an Include() to bring in the independent script.&lt;BR /&gt;For the non addin script, you will just use the method referenced by Ian, and get the directory the addin is save in, and then use an Include() to bring in the needed jsl that has the function in it.</description>
      <pubDate>Thu, 20 May 2021 15:59:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calling-functions-that-are-part-of-an-application-add-in/m-p/387231#M63754</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-05-20T15:59:09Z</dc:date>
    </item>
  </channel>
</rss>

