Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

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

Tags (1)
5 Replies
alexdataiq
Contributor III

Re: Batch - Reload, don't save, and close

Hi David,

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

Regards.

Re: Batch - Reload, don't save, and close

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

arblanche2015
New Contributor

Re: Batch - Reload, don't save, and close

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
Honored Contributor II

Re: Batch - Reload, don't save, and 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

ecolomer
Honored Contributor II

Re: Batch - Reload, don't save, and close

Example:

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

Community Browser