<?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 call an add in using a script in jrn in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-call-an-add-in-using-a-script-in-jrn/m-p/286314#M55268</link>
    <description>yes its working now if i save the jsl file first. thank you &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt; and &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt; !</description>
    <pubDate>Tue, 18 Aug 2020 02:22:56 GMT</pubDate>
    <dc:creator>tikhahabusamah</dc:creator>
    <dc:date>2020-08-18T02:22:56Z</dc:date>
    <item>
      <title>How to call an add in using a script in jrn</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-call-an-add-in-using-a-script-in-jrn/m-p/285700#M55139</link>
      <description>&lt;P&gt;Hi, I'm new and need some help. I've learn how to create script button at jrn and manage to automate t test comparison manually. However, I already had addin Data Comparison which is much more easier for me. Somehow I want to make the script button to open the addin selection. my current jrn button script is like this,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it open from origin path of addin (view -&amp;gt; home folder jsl)&lt;/P&gt;&lt;P&gt;I read somewhere in forum that I need to include this line:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;include( "$ADDIN_HOME(com.xxx.xxx)\Continuous\Sample Comparison.jsl" );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it seems not working in my jrn. NEED HELPP how to automatically run the jsl from addin through jrn.&lt;/P&gt;&lt;P&gt;so I try to do something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Names Default To Here( 1 );&lt;BR /&gt;dt=Open("$ADDIN_HOME(com.xxx.xxx)\Continuous\Sample Comparison.jsl");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it can open but cannot run the script. Does anyone know why? NEED HELP&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JRN.JPG" style="width: 546px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/26220i24FAD6DA692F3F36/image-size/large?v=v2&amp;amp;px=999" role="button" title="JRN.JPG" alt="JRN.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:04:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-call-an-add-in-using-a-script-in-jrn/m-p/285700#M55139</guid>
      <dc:creator>tikhahabusamah</dc:creator>
      <dc:date>2023-06-11T11:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to call an add in using a script in jrn</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-call-an-add-in-using-a-script-in-jrn/m-p/285731#M55142</link>
      <description>&lt;P&gt;You should be able to execute the button of your choice by doing the command that pops up the display window, and then running the following&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;window("the window name")["button workflow"][buttonbox(1)]&amp;lt;&amp;lt;click&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Aug 2020 13:42:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-call-an-add-in-using-a-script-in-jrn/m-p/285731#M55142</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-08-13T13:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to call an add in using a script in jrn</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-call-an-add-in-using-a-script-in-jrn/m-p/285732#M55143</link>
      <description>&lt;P&gt;I think you are saying the script opens in a JSL editor rather than running. Change open(...) to include(...) might work.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 13:55:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-call-an-add-in-using-a-script-in-jrn/m-p/285732#M55143</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-08-13T13:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to call an add in using a script in jrn</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-call-an-add-in-using-a-script-in-jrn/m-p/285739#M55147</link>
      <description>&lt;P&gt;correct me if I'm wrong but does the button script be like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt &amp;lt;&amp;lt; Include( "$ADDIN_HOME(com.xxx.xxx)\Continuous\Sample Comparison.jsl" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I try the code above,but it will only open the .jsl window but cannot run on .jsl window and cannot automatically run it.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 12:19:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-call-an-add-in-using-a-script-in-jrn/m-p/285739#M55147</guid>
      <dc:creator>tikhahabusamah</dc:creator>
      <dc:date>2020-08-14T12:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to call an add in using a script in jrn</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-call-an-add-in-using-a-script-in-jrn/m-p/285779#M55156</link>
      <description>&lt;P&gt;Try changing the include path to the actual path to the Addin folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also,&lt;/P&gt;
&lt;P&gt;I may have misread your initial entry.&amp;nbsp; I read it that the Display Screen that you included was what you were having pop up when you included the Addin's JSL, and it was at that point you needed to run the JSL under each button.&amp;nbsp; Apparently that is not the case.&amp;nbsp; Therefore, my JSL to have one of the button's "Click"ed is not appropriate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a bit of a kluge, but, if you can open the file, you should be able to&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;theFile = load text file("$ADDIN_HOME(com.xxx.xxx)\Continuous\Sample Comparison.jsl);
save text file("$TEMP/myfile.jsl",thefile);
include("$TEMP/myfile.jsl");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Aug 2020 17:20:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-call-an-add-in-using-a-script-in-jrn/m-p/285779#M55156</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-08-13T17:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to call an add in using a script in jrn</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-call-an-add-in-using-a-script-in-jrn/m-p/285782#M55157</link>
      <description>&lt;P&gt;No, just use&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;include( "$ADDIN_HOME(com.xxx.xxx)\Continuous\Sample Comparison.jsl" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The &amp;lt;&amp;lt; operator sends a message on the right side to the object on the left side. That's not what you have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = open(...)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;is appropriate if the file is a JMP data table (.jmp file) and dt becomes a reference to the opened table. That's not what you have either. Open can open many file types; opening .jsl results in an editor window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Include(...) runs the .jsl file. Include() is a function, not a message.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 17:46:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-call-an-add-in-using-a-script-in-jrn/m-p/285782#M55157</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-08-13T17:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to call an add in using a script in jrn</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-call-an-add-in-using-a-script-in-jrn/m-p/285791#M55161</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I agree that using the include() directly pointing to the $ADDIN_HOME reference is preferred....however,&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/19995"&gt;@tikhahabusamah&lt;/a&gt;&amp;nbsp; stated&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"include( "$ADDIN_HOME(com.xxx.xxx)\Continuous\Sample Comparison.jsl" );&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but it seems not working in my jrn. NEED HELPP how to automatically run the jsl from addin through jrn.&lt;/P&gt;
&lt;P&gt;so I try to do something like this:"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But an Open() did work.....thus my work around using the Load Text File()&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 18:39:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-call-an-add-in-using-a-script-in-jrn/m-p/285791#M55161</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-08-13T18:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to call an add in using a script in jrn</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-call-an-add-in-using-a-script-in-jrn/m-p/286314#M55268</link>
      <description>yes its working now if i save the jsl file first. thank you &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt; and &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt; !</description>
      <pubDate>Tue, 18 Aug 2020 02:22:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-call-an-add-in-using-a-script-in-jrn/m-p/286314#M55268</guid>
      <dc:creator>tikhahabusamah</dc:creator>
      <dc:date>2020-08-18T02:22:56Z</dc:date>
    </item>
  </channel>
</rss>

