Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Good morning,
the /r command reloads, saves, and closes.
How would i write a batch statement that opens, reloads, and closes without saving?
"C:\Program Files\QlikView\qv.exe" /??? "D:\GMApps\Qlikview\example.qvw"
Much, much thanks
-David
Hi David,
Did you found a solution for this? I would like to do the same thing.
Regards.
I think a reload without saving the app isn't possible with a command-line batch but you are a lot more flexible if you used vbs-batches, see here two examples: Reduce Number of Applications at a time.
- Marcus
try using the /l switch rather than /r
the only drawback is that it does not close QV
You therefore need to implement a code in your "onpostreload" to do this
Using /v with a variable, you can have something to test in your code to determine whether or not you want the qv instance to quit, or if the document is being reloaded using the usual /r (and therefore does not need your code to close)
The sentence:
"C:\Program Files\QlikView\qv.exe" /r "D:\GMApps\Qlikview\example.qvw"
but it is very important that the user running has the necessary permissions
Example:
C:\"Program Files"\QlikView\qv.exe "c:\QV\GnG_Ventas.qvw" /r
Run the app via batch using this command:
"C:\Program Files\QlikView\qv.exe" "D:\GMApps\Qlikview\example.qvw"
Create the below Macro, put it to run OnOpen Trigger:
Sub CloseApp
ActiveDocument.GetApplication.WaitForIdle
rem ** let QV sleep for 10 seconds **
ActiveDocument.GetApplication.Sleep 10000
Application.Quit
End Sub