Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.


Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

New Contributor II

Create log depending on a variable


I want to generate log files depending on a variable

I have the following macro

Function Inc()


End Function

Sub EnableLog

  set docprop = ActiveDocument.GetProperties

  docprop.GenerateLogFile = ActiveDocument.Varibles("vAux").GetContent.String

  ActiveDocument.SetProperties docprop

End Sub

Wich is call in the script

Let vLogGen = Inc();

When I run this with Desktop it works good, but in the server doesnt work, I have tried 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

but no luck

can any one help