<?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: VB function execution on Server not working! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/VB-function-execution-on-Server-not-working/m-p/1057858#M354463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have additional feedback please pose more questions or if you feel that your question has been answered please close this thread by marking it as answered and if appropriate mark one or more answers as helpful &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Feb 2016 16:11:59 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2016-02-29T16:11:59Z</dc:date>
    <item>
      <title>VB function execution on Server not working!</title>
      <link>https://community.qlik.com/t5/QlikView/VB-function-execution-on-Server-not-working/m-p/1057851#M354456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlik Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have the following function defined and I'm calling this function in the script editor using the following statement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; let x = sendmail('Test');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: variable is not doing anything in the function, and that's by design.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function is basically opening the text file Maro_Err and writing the line Hello There. This is working when executing the script using the thick client. However when reloading the dashboard using QMC, the function sendMail is not doing anything. Any ideas? Is there any setting I can check on the server that is stopping the executing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help is much appreciated. Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function sendMail(variable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on error resume next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim objFileToRead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'''Object to open text file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set objFileToWrite = CreateObject("Scripting.FileSystemObject").OpenTextFile("\\servername\Macro_Err.txt",2,true)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;'''''&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objFileToWrite.WriteLine("Hello There")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objFileToWrite.Close&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set objFileToWrite = Nothing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Clear the memory&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set outobj = Nothing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set mailobj = Nothing&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 19:37:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-function-execution-on-Server-not-working/m-p/1057851#M354456</guid>
      <dc:creator />
      <dc:date>2016-02-17T19:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: VB function execution on Server not working!</title>
      <link>https://community.qlik.com/t5/QlikView/VB-function-execution-on-Server-not-working/m-p/1057852#M354457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is because Macros are not supported in Ajax mode.. Try using the IE Pugins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 20:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-function-execution-on-Server-not-working/m-p/1057852#M354457</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2016-02-17T20:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: VB function execution on Server not working!</title>
      <link>https://community.qlik.com/t5/QlikView/VB-function-execution-on-Server-not-working/m-p/1057853#M354458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Visual Basic works also in Ajax but with limitations as documented in the QlikView Reference Manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question does not mention Ajax but Load Script calling a VBScritical function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 20:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-function-execution-on-Server-not-working/m-p/1057853#M354458</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2016-02-17T20:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: VB function execution on Server not working!</title>
      <link>https://community.qlik.com/t5/QlikView/VB-function-execution-on-Server-not-working/m-p/1057854#M354459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The server settings in the QMC have to allow execution of Macros. It could also be a matter of rights....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 20:16:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-function-execution-on-Server-not-working/m-p/1057854#M354459</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2016-02-17T20:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: VB function execution on Server not working!</title>
      <link>https://community.qlik.com/t5/QlikView/VB-function-execution-on-Server-not-working/m-p/1057855#M354460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I don't think this has anything to do w/ Ajax vs. IE plugin. My reasoning is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The qvw has no frontend. My goal of this qvw is to set a reload task that on a predetermined frequency can refresh the dashboard and execute the macro. So I'm not even using the front end at all. Let me know if i'm mistaken.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter - I looked into your other comment about macro execution on server setting. This setting is enabled, yet the dashboard is still not write the string to the text file, as the function is instructed to do. Any ideas??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 20:27:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-function-execution-on-Server-not-working/m-p/1057855#M354460</guid>
      <dc:creator />
      <dc:date>2016-02-17T20:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: VB function execution on Server not working!</title>
      <link>https://community.qlik.com/t5/QlikView/VB-function-execution-on-Server-not-working/m-p/1057856#M354461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check these three things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) The reference to the file does not seem to be valid:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \\servername\Macro_Err.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The structure of an UNC path to a file has to have at least three components&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \\servername\share\filename&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) The account that the server is running under has to have sufficient rights to the file that will be written to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) The file has to exist already since you are not creating the file but only opening it for writing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 03:03:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-function-execution-on-Server-not-working/m-p/1057856#M354461</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2016-02-18T03:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: VB function execution on Server not working!</title>
      <link>https://community.qlik.com/t5/QlikView/VB-function-execution-on-Server-not-working/m-p/1057857#M354462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look here: &lt;A href="https://community.qlik.com/docs/DOC-3024"&gt;Using EDX in QlikView 11 - basic example&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 06:54:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-function-execution-on-Server-not-working/m-p/1057857#M354462</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-02-18T06:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: VB function execution on Server not working!</title>
      <link>https://community.qlik.com/t5/QlikView/VB-function-execution-on-Server-not-working/m-p/1057858#M354463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have additional feedback please pose more questions or if you feel that your question has been answered please close this thread by marking it as answered and if appropriate mark one or more answers as helpful &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 16:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-function-execution-on-Server-not-working/m-p/1057858#M354463</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2016-02-29T16:11:59Z</dc:date>
    </item>
  </channel>
</rss>

