Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Is that Possible to Specify Path of the "Generate Logfile"?

Hi Guys,

I am trying to give my own path for "Generate Logfile" Properties.

Is this possible or not? By default It is saving on path where my .QVW file is located

Untitled2.png

10 Replies
stantrolav
Partner - Creator II
Partner - Creator II

If you run such thing in load script statment you must use additional rights. Some times it's bad for administrators. This quest can be solved in macro:

1. Trigger on end of reload in self-application, that run macro:

     Sub RunCMDComand

     CMDCommand = ActiveDocument.Variables("RunCMD").GetContent.String

     set objShell = CreateObject("WScript.Shell")

     objShell.run CMDCommand,0,true

     end sub

2. Make variable RunCMD like this:

     ='CMD /C MOVE ' & SubField(DocumentPath(), '.', 1) & '*.log ' & Replace(DocumentPath(), DocumentName(), 'Log')

3. Be alerted that you MUST CREATE FOLDER "Log" in the folder that .QVW is in.

Macro would run after App is reloaded in full-client app either by server.