Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Batch - Reload, don't save, and close

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

6 Replies
alexdataiq
Partner - Creator III
Partner - Creator III

Hi David,

Did you found a solution for this? I would like to do the same thing.

Regards.

marcus_sommer

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

Anonymous
Not applicable
Author

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)

ecolomer
Master II
Master II

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

ecolomer
Master II
Master II

Example:

C:\"Program Files"\QlikView\qv.exe "c:\QV\GnG_Ventas.qvw"   /r

Claudiu_Anghelescu
Specialist
Specialist

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

To help community find solutions, please don't forget to mark as correct.