<?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 Create log depending on a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-log-depending-on-a-variable/m-p/1262207#M620092</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;I want to generate log files depending on a variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following macro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Inc()&lt;/P&gt;&lt;P&gt;&amp;nbsp; EnableLog&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub EnableLog&lt;/P&gt;&lt;P&gt;&amp;nbsp; set docprop = ActiveDocument.GetProperties&lt;/P&gt;&lt;P&gt;&amp;nbsp; docprop.GenerateLogFile = ActiveDocument.Varibles("vAux").GetContent.String&lt;/P&gt;&lt;P&gt;&amp;nbsp; ActiveDocument.SetProperties docprop&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wich is call in the script&lt;/P&gt;&lt;P&gt;Let vLogGen = Inc();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run this with Desktop it works good, but in the server doesnt work, I have tried &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;System, Setup, QlikView Servers, expand and click, Seucrity tab in the right pane "Allow unsafe macro execution on server" and "Allow macro execution on server" ticked&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;but no luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one help &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Feb 2017 14:26:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-02-24T14:26:41Z</dc:date>
    <item>
      <title>Create log depending on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Create-log-depending-on-a-variable/m-p/1262207#M620092</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;I want to generate log files depending on a variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following macro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Inc()&lt;/P&gt;&lt;P&gt;&amp;nbsp; EnableLog&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub EnableLog&lt;/P&gt;&lt;P&gt;&amp;nbsp; set docprop = ActiveDocument.GetProperties&lt;/P&gt;&lt;P&gt;&amp;nbsp; docprop.GenerateLogFile = ActiveDocument.Varibles("vAux").GetContent.String&lt;/P&gt;&lt;P&gt;&amp;nbsp; ActiveDocument.SetProperties docprop&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wich is call in the script&lt;/P&gt;&lt;P&gt;Let vLogGen = Inc();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run this with Desktop it works good, but in the server doesnt work, I have tried &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;System, Setup, QlikView Servers, expand and click, Seucrity tab in the right pane "Allow unsafe macro execution on server" and "Allow macro execution on server" ticked&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;but no luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one help &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 14:26:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-log-depending-on-a-variable/m-p/1262207#M620092</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-24T14:26:41Z</dc:date>
    </item>
  </channel>
</rss>

