<?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: Exclude data when loading data with a script in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Exclude-data-when-loading-data-with-a-script/m-p/9175#M9097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Byron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I copy and paste the query into a script which is exactly the following:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #555555;"&gt;dt=CurrentDataTable();&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #555555;"&gt;dt&amp;lt;&amp;lt;Select Where(Exclude=="Exclude")&amp;lt;&amp;lt;hide&amp;lt;&amp;lt;Exclude; &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #555555;"&gt;It works.&amp;nbsp; But when I save the script to a jsl addin, it oddly doesn't.&amp;nbsp; The column name and case and spaces match.&amp;nbsp; So does it for the rows.&amp;nbsp; Its very odd that it works in non-addin jsl but not in addin.&amp;nbsp; I didn't generate this jsl form the data filter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Aug 2014 19:22:48 GMT</pubDate>
    <dc:creator>bjbreitling</dc:creator>
    <dc:date>2014-08-07T19:22:48Z</dc:date>
    <item>
      <title>Exclude data when loading data with a script</title>
      <link>https://community.jmp.com/t5/Discussions/Exclude-data-when-loading-data-with-a-script/m-p/9167#M9089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I open a table with a database with the following script saved to the datatable it works.&amp;nbsp; When I save the script to a menu item in an addin it just pulls the data and doesn't exclude.&amp;nbsp; Whats up?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open Database(&lt;/P&gt;&lt;P&gt;&amp;nbsp; "DSN=PI SQL Connection Lab;Description=PI SQL Connection Lab;UID=;Trusted_Connection=Yes;APP=JMP;WSID=SFX-5GCN2M1;DATABASE=LabData",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "SELECT * FROM dbo.NSI_Discovered_Factors_Lab_Data",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "NSI_Discovered_Factors_Lab_Data",&lt;/P&gt;&lt;P&gt;"NSI Database"&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;dt=CurrentDataTable();&lt;/P&gt;&lt;P&gt;dt&amp;lt;&amp;lt;Select Where(Exclude=="Exclude")&amp;lt;&amp;lt;hide&amp;lt;&amp;lt;Exclude;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 21:54:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exclude-data-when-loading-data-with-a-script/m-p/9167#M9089</guid>
      <dc:creator>bjbreitling</dc:creator>
      <dc:date>2014-08-05T21:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude data when loading data with a script</title>
      <link>https://community.jmp.com/t5/Discussions/Exclude-data-when-loading-data-with-a-script/m-p/9168#M9090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its possible that the Open isn't complete when the Select is executed?&lt;/P&gt;&lt;P&gt;I haven't seen this exact problem, but something like it when I'm working with tables that have lots of rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two suggestions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, assign the data table to a variable when its opened. This way dt=current data table(); doesn't accidentally end up pointing at the current table, while the database table is opening.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt=open database("DNS....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Leave out the dt=current data table();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, force dt to be evaluated before selecting rows. It can't be evaluated before it finishes opening&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt&amp;lt;&amp;lt;Run Formulas; //include this first&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #555555; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt&amp;lt;&amp;lt;Select Where(Exclude=="Exclude")&amp;lt;&amp;lt;hide&amp;lt;&amp;lt;Exclude;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 14:51:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exclude-data-when-loading-data-with-a-script/m-p/9168#M9090</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2014-08-06T14:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude data when loading data with a script</title>
      <link>https://community.jmp.com/t5/Discussions/Exclude-data-when-loading-data-with-a-script/m-p/9169#M9091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Byron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That didn't fix it.&amp;nbsp; I also made a separate addin that should work given what you said is true which I execute after the loading of the dataset which is just the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #555555;"&gt;dt=CurrentDataTable();&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #555555;"&gt;dt&amp;lt;&amp;lt;Select Where(Exclude=="Exclude")&amp;lt;&amp;lt;hide&amp;lt;&amp;lt;Exclude;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #555555;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #555555;"&gt;This oddly doesn't work either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 15:12:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exclude-data-when-loading-data-with-a-script/m-p/9169#M9091</guid>
      <dc:creator>bjbreitling</dc:creator>
      <dc:date>2014-08-06T15:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude data when loading data with a script</title>
      <link>https://community.jmp.com/t5/Discussions/Exclude-data-when-loading-data-with-a-script/m-p/9170#M9092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using wait(0) instead of run formulas.&amp;nbsp; I agree with Byron - remove the dt = current data table and set dt = to the results of open database.&amp;nbsp; Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: #0000dd;"&gt;Open Database&lt;/SPAN&gt;&lt;STRONG style="color: black; font-family: 'Courier New';"&gt;(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: purple;"&gt;"DSN=PI SQL Connection Lab;Description=PI SQL Connection Lab;UID=;Trusted_Connection=Yes;APP=JMP;WSID=SFX-5GCN2M1;DATABASE=LabData"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: purple;"&gt;"SELECT * FROM dbo.NSI_Discovered_Factors_Lab_Data"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: purple;"&gt;"NSI_Discovered_Factors_Lab_Data"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: purple;"&gt;"NSI Database"&lt;/SPAN&gt;&lt;STRONG style="color: black; font-family: 'Courier New';"&gt;)&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: #0000dd;"&gt;wait&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;Select Where&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black;"&gt;Exclude&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;==&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple;"&gt;"Exclude"&lt;/SPAN&gt;&lt;STRONG style="color: black; font-family: 'Courier New';"&gt;)&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;STRONG style="color: navy; font-family: 'Courier New';"&gt;hide&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;STRONG style="color: navy; font-family: 'Courier New';"&gt;Exclude&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 15:48:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exclude-data-when-loading-data-with-a-script/m-p/9170#M9092</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2014-08-06T15:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude data when loading data with a script</title>
      <link>https://community.jmp.com/t5/Discussions/Exclude-data-when-loading-data-with-a-script/m-p/9171#M9093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same issue PMroz.&amp;nbsp; Oddly it still doesn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 14:29:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exclude-data-when-loading-data-with-a-script/m-p/9171#M9093</guid>
      <dc:creator>bjbreitling</dc:creator>
      <dc:date>2014-08-07T14:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude data when loading data with a script</title>
      <link>https://community.jmp.com/t5/Discussions/Exclude-data-when-loading-data-with-a-script/m-p/9172#M9094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a thought.&amp;nbsp; Since you're pulling the data with SQL, why don't you exclude the rows in SQL?&amp;nbsp; Also I think you have an extra parameter to Open Database (NSI Database).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #555555;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Courier New'; color: black;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Courier New'; color: navy;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Courier New'; color: #0000dd;"&gt;Open Database&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; color: black;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #555555;"&gt;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Courier New'; color: purple;"&gt;"DSN=PI SQL Connection Lab;Description=PI SQL Connection Lab;UID=;Trusted_Connection=Yes;APP=JMP;WSID=SFX-5GCN2M1;DATABASE=LabData"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Courier New'; color: navy;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #555555;"&gt;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Courier New'; color: purple;"&gt;"SELECT * FROM dbo.NSI_Discovered_Factors_Lab_Data WHERE exclude != 'Exclude'"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Courier New'; color: navy;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #555555;"&gt;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Courier New'; color: purple;"&gt;"NSI_Discovered_Factors_Lab_Data"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Courier New'; color: navy;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #555555;"&gt;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Courier New'; color: purple;"&gt;"NSI Database"&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: 'Courier New'; color: black;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'Courier New'; color: navy;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 14:59:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exclude-data-when-loading-data-with-a-script/m-p/9172#M9094</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2014-08-07T14:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude data when loading data with a script</title>
      <link>https://community.jmp.com/t5/Discussions/Exclude-data-when-loading-data-with-a-script/m-p/9173#M9095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is an option PMroz, but I would prefer pulling the all the data and leave folks the option to un-exclude.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 18:36:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exclude-data-when-loading-data-with-a-script/m-p/9173#M9095</guid>
      <dc:creator>bjbreitling</dc:creator>
      <dc:date>2014-08-07T18:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude data when loading data with a script</title>
      <link>https://community.jmp.com/t5/Discussions/Exclude-data-when-loading-data-with-a-script/m-p/9174#M9096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There may be a couple of other little things to check, and I apologize in advance for being so basic.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The imported data table has a column named "Exclude"&lt;/P&gt;&lt;P&gt;-does the actual column name have any leading spaces?&lt;/P&gt;&lt;P&gt;-does the actual column name match? e.g. title case and spelling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values to filter on in the column named "Exclude"&lt;/P&gt;&lt;P&gt;-do the values in the column have any leading or trailing spaces? &lt;/P&gt;&lt;P&gt;-is the spelling and title case exact for the level "Exclude"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script in the data table works, did it come from the Data Filter?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 19:08:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exclude-data-when-loading-data-with-a-script/m-p/9174#M9096</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2014-08-07T19:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude data when loading data with a script</title>
      <link>https://community.jmp.com/t5/Discussions/Exclude-data-when-loading-data-with-a-script/m-p/9175#M9097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Byron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I copy and paste the query into a script which is exactly the following:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #555555;"&gt;dt=CurrentDataTable();&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #555555;"&gt;dt&amp;lt;&amp;lt;Select Where(Exclude=="Exclude")&amp;lt;&amp;lt;hide&amp;lt;&amp;lt;Exclude; &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #555555;"&gt;It works.&amp;nbsp; But when I save the script to a jsl addin, it oddly doesn't.&amp;nbsp; The column name and case and spaces match.&amp;nbsp; So does it for the rows.&amp;nbsp; Its very odd that it works in non-addin jsl but not in addin.&amp;nbsp; I didn't generate this jsl form the data filter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 19:22:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exclude-data-when-loading-data-with-a-script/m-p/9175#M9097</guid>
      <dc:creator>bjbreitling</dc:creator>
      <dc:date>2014-08-07T19:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude data when loading data with a script</title>
      <link>https://community.jmp.com/t5/Discussions/Exclude-data-when-loading-data-with-a-script/m-p/9176#M9098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the clue about it working when run from a script editor but not as an add-in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That usually indicates a scoping problem for variable references in your JSL. By default, add-ins run with the "Names Default to Here(1)" option, so that un-scoped references go to the "Here" namespace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your &lt;STRONG&gt;Select Where()&lt;/STRONG&gt; has an un-scoped variable in it in the form of &lt;STRONG&gt;Exclude&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you include a : before it to scope it to a data table column it works in both cases (script editor and add-in).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;dt&lt;/SPAN&gt;&amp;lt;&amp;lt;&lt;STRONG&gt;Select Where&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;:&lt;SPAN style="color: #000000;"&gt;Exclude&lt;/SPAN&gt;==&lt;SPAN style="color: #942193;"&gt;"Exclude"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;lt;&amp;lt;&lt;STRONG&gt;hide&lt;/STRONG&gt;&amp;lt;&amp;lt;&lt;STRONG&gt;Exclude&lt;/STRONG&gt;;&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;-Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 19:44:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exclude-data-when-loading-data-with-a-script/m-p/9176#M9098</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2014-08-07T19:44:11Z</dc:date>
    </item>
  </channel>
</rss>

