<?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: Why this bug happens occasionally? (Send Expects Scriptable Object) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Why-this-bug-happens-occasionally-Send-Expects-Scriptable-Object/m-p/67946#M34733</link>
    <description>Thank you for your advice! Using show() to check is a good idea!</description>
    <pubDate>Tue, 14 Aug 2018 20:33:46 GMT</pubDate>
    <dc:creator>vistacc</dc:creator>
    <dc:date>2018-08-14T20:33:46Z</dc:date>
    <item>
      <title>Why this bug happens occasionally? (Send Expects Scriptable Object)</title>
      <link>https://community.jmp.com/t5/Discussions/Why-this-bug-happens-occasionally-Send-Expects-Scriptable-Object/m-p/67923#M34720</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am writing a UI and I include a section for the user to select output directory to save the generated data files. Following is the script:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// press the select button
selectDirectoryButtonPress = Function( {this},
	outputLocation = Pick Directory( "Select output location." );
	outputDir &amp;lt;&amp;lt; setText( outputLocation );
);
// press the clear button
ClearDirectoryButtonPress = Function( {this},
	outputDir &amp;lt;&amp;lt; setText( "" );
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the button sometimes works fine but sometimes raise a&amp;nbsp;bug saying&lt;/P&gt;&lt;P&gt;Send Expects Scriptable Object{30} in access or evaluation of 'Send' , outputDir &amp;lt;&amp;lt;&amp;nbsp; /*###*/setText( outputLocation ) /*###*/.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="test.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12016i6BAA80B536BE87D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="test.png" alt="test.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Especially after the user has already select a directory path, pressing either button will have the send bug. I don't understand why this happen... I also have a section that ask the user to provide input file and that works fine every time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 14:45:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Why-this-bug-happens-occasionally-Send-Expects-Scriptable-Object/m-p/67923#M34720</guid>
      <dc:creator>vistacc</dc:creator>
      <dc:date>2018-08-14T14:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why this bug happens occasionally? (Send Expects Scriptable Object)</title>
      <link>https://community.jmp.com/t5/Discussions/Why-this-bug-happens-occasionally-Send-Expects-Scriptable-Object/m-p/67924#M34721</link>
      <description>Any help would be greatly appreciated!</description>
      <pubDate>Tue, 14 Aug 2018 14:46:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Why-this-bug-happens-occasionally-Send-Expects-Scriptable-Object/m-p/67924#M34721</guid>
      <dc:creator>vistacc</dc:creator>
      <dc:date>2018-08-14T14:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why this bug happens occasionally? (Send Expects Scriptable Object)</title>
      <link>https://community.jmp.com/t5/Discussions/Why-this-bug-happens-occasionally-Send-Expects-Scriptable-Object/m-p/67926#M34723</link>
      <description>Never mind! I have figured out the problem is that I give the two variables(the text box as "outputDir" and the variable that save the content in the text box as "outputdir") the same name (only case different). I forgot JMP is not case sensitive. I don't know how to delete the post. If any admin see this post, please delete it. Thank you!</description>
      <pubDate>Tue, 14 Aug 2018 14:59:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Why-this-bug-happens-occasionally-Send-Expects-Scriptable-Object/m-p/67926#M34723</guid>
      <dc:creator>vistacc</dc:creator>
      <dc:date>2018-08-14T14:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why this bug happens occasionally? (Send Expects Scriptable Object)</title>
      <link>https://community.jmp.com/t5/Discussions/Why-this-bug-happens-occasionally-Send-Expects-Scriptable-Object/m-p/67929#M34726</link>
      <description>&lt;P&gt;Glad you got the answer. The message&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Send Expects Scriptable Object&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;means the &amp;lt;&amp;lt; (send operator) is trying to send a message (like &lt;EM&gt;&lt;STRONG&gt;settext&lt;/STRONG&gt;&lt;/EM&gt;) to outputDir, but outputDir is not holding an object that accepts messages (a &lt;EM&gt;&lt;STRONG&gt;Scriptable Object&lt;/STRONG&gt;&lt;/EM&gt;). JSL has a show function that can be helpful for these problems; &lt;EM&gt;&lt;STRONG&gt;show(outputDir)&lt;/STRONG&gt;&lt;/EM&gt; just before the send will tell you what outputDir is holding.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'll pass this on to someone that might be able to make the message more clear; it happens a lot.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 18:12:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Why-this-bug-happens-occasionally-Send-Expects-Scriptable-Object/m-p/67929#M34726</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2018-08-14T18:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why this bug happens occasionally? (Send Expects Scriptable Object)</title>
      <link>https://community.jmp.com/t5/Discussions/Why-this-bug-happens-occasionally-Send-Expects-Scriptable-Object/m-p/67946#M34733</link>
      <description>Thank you for your advice! Using show() to check is a good idea!</description>
      <pubDate>Tue, 14 Aug 2018 20:33:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Why-this-bug-happens-occasionally-Send-Expects-Scriptable-Object/m-p/67946#M34733</guid>
      <dc:creator>vistacc</dc:creator>
      <dc:date>2018-08-14T20:33:46Z</dc:date>
    </item>
  </channel>
</rss>

