<?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: Using script to reference another script gives error where running only second script works just fine. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Using-script-to-reference-another-script-gives-error-where/m-p/693623#M87895</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Depending on how you want to get the value, either use &amp;lt;&amp;lt; get inside button box or sometimes you might have to use &amp;lt;&amp;lt; Set Number Changed . Below is example from Scripting Index using &amp;lt;&amp;lt; Get&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
New Window("Example", numbox = Number Edit Box(0));
Print(numbox &amp;lt;&amp;lt; Get);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1698902223208.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58242i7A47AF7B931DC5D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1698902223208.png" alt="jthi_0-1698902223208.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That did it! Had a little trouble with demonstrating with Show() that the variable changed, but once I included it in the New Window command, it worked fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a bunch!&lt;/P&gt;</description>
    <pubDate>Thu, 02 Nov 2023 16:16:30 GMT</pubDate>
    <dc:creator>ehchandlerjr</dc:creator>
    <dc:date>2023-11-02T16:16:30Z</dc:date>
    <item>
      <title>Using script to reference another script gives error where running only second script works just fine.</title>
      <link>https://community.jmp.com/t5/Discussions/Using-script-to-reference-another-script-gives-error-where/m-p/693320#M87863</link>
      <description>&lt;P&gt;Hello - I am working on two scripts, one where I make a user input box, and a second where I import an XML file. I built the XML file importer as a standalone script, and it works just fine. However, when I call it with the button script, I can't get it to work, saying&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Wrong result type for expression for column xsi:Schema Location 1 at row 1 in access or evaluation of 'Set Each Value' , Set Each Value( schemaLoc1 ) /*###*/ at line 1012 in jmpprj://contents/Import XRD XML.jsl&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;At line 982, the "schemaLoc1" doesn't seem to be picking anything up, which is why the 1012 line isn't working, but I'm not sure why calling the script from a button would mess it up unless my assignment of dt to the current data table changes, as I have the button script as a table script, while the other is just sitting in the project folder, but I can't use "show" to see what dt is for some reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, for the button code, I've found a few forum posts, but they don't seem to work: How do you get Number Edit Box() to return the user input when its contained in a new window command (line 7)? I've tried making it equal to a variable like the scripting guide and forum posts say, but that seems to just return&amp;nbsp;&amp;nbsp;b1 = DisplayBox[NumberEditBox]; and not a value.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 04:05:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-script-to-reference-another-script-gives-error-where/m-p/693320#M87863</guid>
      <dc:creator>ehchandlerjr</dc:creator>
      <dc:date>2023-11-02T04:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using script to reference another script gives error where running only second script works just fine.</title>
      <link>https://community.jmp.com/t5/Discussions/Using-script-to-reference-another-script-gives-error-where/m-p/693336#M87866</link>
      <description>&lt;P&gt;Depending on how you want to get the value, either use &amp;lt;&amp;lt; get inside button box or sometimes you might have to use &amp;lt;&amp;lt; Set Number Changed . Below is example from Scripting Index using &amp;lt;&amp;lt; Get&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
New Window("Example", numbox = Number Edit Box(0));
Print(numbox &amp;lt;&amp;lt; Get);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1698902223208.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58242i7A47AF7B931DC5D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1698902223208.png" alt="jthi_0-1698902223208.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 05:18:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-script-to-reference-another-script-gives-error-where/m-p/693336#M87866</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-11-02T05:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using script to reference another script gives error where running only second script works just fine.</title>
      <link>https://community.jmp.com/t5/Discussions/Using-script-to-reference-another-script-gives-error-where/m-p/693337#M87867</link>
      <description>&lt;P&gt;Most likely there should be no need to use Current Data Table() at all as open() will return the reference to your table.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 05:20:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-script-to-reference-another-script-gives-error-where/m-p/693337#M87867</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-11-02T05:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using script to reference another script gives error where running only second script works just fine.</title>
      <link>https://community.jmp.com/t5/Discussions/Using-script-to-reference-another-script-gives-error-where/m-p/693623#M87895</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Depending on how you want to get the value, either use &amp;lt;&amp;lt; get inside button box or sometimes you might have to use &amp;lt;&amp;lt; Set Number Changed . Below is example from Scripting Index using &amp;lt;&amp;lt; Get&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
New Window("Example", numbox = Number Edit Box(0));
Print(numbox &amp;lt;&amp;lt; Get);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1698902223208.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58242i7A47AF7B931DC5D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1698902223208.png" alt="jthi_0-1698902223208.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That did it! Had a little trouble with demonstrating with Show() that the variable changed, but once I included it in the New Window command, it worked fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a bunch!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 16:16:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-script-to-reference-another-script-gives-error-where/m-p/693623#M87895</guid>
      <dc:creator>ehchandlerjr</dc:creator>
      <dc:date>2023-11-02T16:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using script to reference another script gives error where running only second script works just fine.</title>
      <link>https://community.jmp.com/t5/Discussions/Using-script-to-reference-another-script-gives-error-where/m-p/693624#M87896</link>
      <description>&lt;P&gt;Just for posterities sake, the solution to the first question is that&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I had been updating a version of the script that was apparently saved separately from the version stored in my JMP Project file (and my button code was referencing the project one), so I had to start editing the project one,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. An annoying mundane error: I had a column reference without the row specified, e.g.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;x = dt:Column1&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;instead of&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;x = dt:Column1[1]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this helps someone think about the small details.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 16:31:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-script-to-reference-another-script-gives-error-where/m-p/693624#M87896</guid>
      <dc:creator>ehchandlerjr</dc:creator>
      <dc:date>2023-11-02T16:31:03Z</dc:date>
    </item>
  </channel>
</rss>

