<?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 Add-in: Log Error in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Add-in-Log-Error/m-p/425833#M67534</link>
    <description>&lt;P&gt;I read through post:&lt;A href="https://community.jmp.com/t5/Discussions/Script-no-longer-works-when-made-into-an-addin/td-p/72278" target="_self"&gt;discussion1&lt;/A&gt;&amp;nbsp;but still I could not resolve my error.&lt;/P&gt;&lt;P&gt;The full script is large so I just condensed it down to a few lines.&lt;/P&gt;&lt;P&gt;When I create the add-in, the Log says:&amp;nbsp; Name Unresolved: DSN in access or evaluation of 'DSN' , DSN/*###*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Clear Log();
::DSN = "a64";  
::connection      = eval insert("DSN="||"^DSN^"||";UID=stuff;PWD=place;"); 
ct                = Open("C:\Users\tom_p\Desktop\user-interface\UI_counter.jmp");  
::count_a         = ct:Table_Count[ 1 ];&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas how to overcome? I tried DSN removing the global variable colon,colon (DSN="a64";) and it did not fix the issue. I'm running JMP 16.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 18:02:17 GMT</pubDate>
    <dc:creator>Tom_P</dc:creator>
    <dc:date>2023-06-09T18:02:17Z</dc:date>
    <item>
      <title>Add-in: Log Error</title>
      <link>https://community.jmp.com/t5/Discussions/Add-in-Log-Error/m-p/425833#M67534</link>
      <description>&lt;P&gt;I read through post:&lt;A href="https://community.jmp.com/t5/Discussions/Script-no-longer-works-when-made-into-an-addin/td-p/72278" target="_self"&gt;discussion1&lt;/A&gt;&amp;nbsp;but still I could not resolve my error.&lt;/P&gt;&lt;P&gt;The full script is large so I just condensed it down to a few lines.&lt;/P&gt;&lt;P&gt;When I create the add-in, the Log says:&amp;nbsp; Name Unresolved: DSN in access or evaluation of 'DSN' , DSN/*###*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Clear Log();
::DSN = "a64";  
::connection      = eval insert("DSN="||"^DSN^"||";UID=stuff;PWD=place;"); 
ct                = Open("C:\Users\tom_p\Desktop\user-interface\UI_counter.jmp");  
::count_a         = ct:Table_Count[ 1 ];&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas how to overcome? I tried DSN removing the global variable colon,colon (DSN="a64";) and it did not fix the issue. I'm running JMP 16.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:02:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Add-in-Log-Error/m-p/425833#M67534</guid>
      <dc:creator>Tom_P</dc:creator>
      <dc:date>2023-06-09T18:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in: Log Error</title>
      <link>https://community.jmp.com/t5/Discussions/Add-in-Log-Error/m-p/425846#M67538</link>
      <description>&lt;P&gt;By chance are you using names default to here(1)?&amp;nbsp; If so JMP might be looking for here:DSN instead of ::DSN.&amp;nbsp; Give this a try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;::connection      = eval insert("DSN="||"^::DSN^"||";UID=stuff;PWD=place;"); &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;this is what your script might be looking for:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;::connection      = eval insert("DSN="||"^here:DSN^"||";UID=stuff;PWD=place;"); &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Oct 2021 21:34:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Add-in-Log-Error/m-p/425846#M67538</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2021-10-12T21:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Add-in: Log Error</title>
      <link>https://community.jmp.com/t5/Discussions/Add-in-Log-Error/m-p/426022#M67563</link>
      <description>&lt;P&gt;Once i saw your definition, i realized i had left "checked":&amp;nbsp; Use the "Here" namespace for unqualified JSL variable names in the menu items tab.&amp;nbsp; Unchecking that box let the program load and run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your 1st option worked as well&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 13:21:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Add-in-Log-Error/m-p/426022#M67563</guid>
      <dc:creator>Tom_P</dc:creator>
      <dc:date>2021-10-13T13:21:49Z</dc:date>
    </item>
  </channel>
</rss>

