<?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 Macro save to access through server (AccessPoint) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-save-to-access-through-server-AccessPoint/m-p/322344#M118757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on how you have coded the folders (using UNC paths or network mapped drives), but you also have to take into account what does the macro do exactly (calling a VBS file to insert the info, calling a SQL INSERT or UPDATE directly).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post some code so we can check it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small active_link" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Sep 2011 12:01:08 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-09-05T12:01:08Z</dc:date>
    <item>
      <title>Macro save to access through server (AccessPoint)</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-save-to-access-through-server-AccessPoint/m-p/322343#M118756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a macro that saves some information to a access database. The macro itself works on the local system, but when i try to use it through the server - eg. AccessPoint (with AJAX or IE plug-in) it will still want to save to the access-db on my local machine, not on the server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to do this, or am I stuck?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kim Rørmark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 11:22:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-save-to-access-through-server-AccessPoint/m-p/322343#M118756</guid>
      <dc:creator>kim_rormark</dc:creator>
      <dc:date>2011-09-05T11:22:20Z</dc:date>
    </item>
    <item>
      <title>Macro save to access through server (AccessPoint)</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-save-to-access-through-server-AccessPoint/m-p/322344#M118757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on how you have coded the folders (using UNC paths or network mapped drives), but you also have to take into account what does the macro do exactly (calling a VBS file to insert the info, calling a SQL INSERT or UPDATE directly).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post some code so we can check it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small active_link" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 12:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-save-to-access-through-server-AccessPoint/m-p/322344#M118757</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-09-05T12:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Macro save to access through server (AccessPoint)</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-save-to-access-through-server-AccessPoint/m-p/322345#M118758</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;This is one of the macros used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;P&gt;strConnect = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=db\SLA-db.mdb"&lt;BR /&gt;&lt;BR /&gt;Set conn = CreateObject("ADODB.Connection")&lt;BR /&gt;conn.Open strConnect&lt;BR /&gt;&lt;BR /&gt;sql =_&lt;BR /&gt;"SELECT * FROM CustomerInfo where CustomerCode= '" &amp;amp; ActiveDocument.evaluate("ibvCustToChange") &amp;amp; "'"&lt;BR /&gt;&lt;BR /&gt;Set RS = conn.Execute(sql) &lt;/P&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;So you what you see here is that the Data Source is in a folder "db" that resides in the same folder as the qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem here is that it want to use a file on my local computer, not on the server (as I hope to get it to do).&lt;/P&gt;&lt;P&gt;Would a walkaround be to make a VBS-file do it for me? Won't it just look for the VBS-file on my local system instead, like it does with the access-file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 12:06:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-save-to-access-through-server-AccessPoint/m-p/322345#M118758</guid>
      <dc:creator>kim_rormark</dc:creator>
      <dc:date>2011-09-05T12:06:41Z</dc:date>
    </item>
    <item>
      <title>Macro save to access through server (AccessPoint)</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-save-to-access-through-server-AccessPoint/m-p/322346#M118759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure you are granting system access to the macro. To do this, go to the Module Edit dialog (Ctrl + M) and on the right part set "System Access" and "Allow System Access".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, open the file locally on the server, and make sure the connection string works. Try creating a new OLE DB connection string in the server pointing to your MDB file. Paste the result in your document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Third, make sure macros are allowed in the server, go to the QlikView Enterprise Management Console, System, Setup, Security and check both Allow Macro and Allow Unsafe Macro Execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 14:18:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-save-to-access-through-server-AccessPoint/m-p/322346#M118759</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-09-05T14:18:00Z</dc:date>
    </item>
    <item>
      <title>Macro save to access through server (AccessPoint)</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-save-to-access-through-server-AccessPoint/m-p/322347#M118760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The macro do have "System Access" and "Allow System Access".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried to open the file locally on the server, and when opened there everything seems just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The macros are also allowed through the QV Enterprise Management Console, both Allow Macro and Allow Unsafe Macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem seems to be that when I open a QlikView-application, either through the AccessPoint (Ajax, IE-plugin) og through the QlikView Desktop (by connecting to the server) the macros are executed locally instead of on the server itself. Have you ever created a macro that read from/wrote to a file from the server, that worked?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 07:17:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-save-to-access-through-server-AccessPoint/m-p/322347#M118760</guid>
      <dc:creator>kim_rormark</dc:creator>
      <dc:date>2011-09-06T07:17:02Z</dc:date>
    </item>
    <item>
      <title>Macro save to access through server (AccessPoint)</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-save-to-access-through-server-AccessPoint/m-p/322348#M118761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; It doesn't look like your Data Source contains a complete path to the database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 12:26:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-save-to-access-through-server-AccessPoint/m-p/322348#M118761</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2011-09-06T12:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Macro save to access through server (AccessPoint)</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-save-to-access-through-server-AccessPoint/m-p/322349#M118762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, in that example it didn't. Thats because it was located in a folder called "db" that was in the same folder as the qvw. That is not the problem, I have tried complete paths also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found a workaround (not that secure though), by mapping the database to a servername.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg. &lt;A href="https://community.qlik.com/"&gt;\\SERVER\db\SLA-db.mdb&lt;/A&gt; where the SERVER is the servername of the server that QlikView Server is installed on. And of course I shared that folder onto the network.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If someone has a better(good) solution for this, please shout it out! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 12:46:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-save-to-access-through-server-AccessPoint/m-p/322349#M118762</guid>
      <dc:creator>kim_rormark</dc:creator>
      <dc:date>2011-09-06T12:46:08Z</dc:date>
    </item>
  </channel>
</rss>

