Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I need your help in windows command to execute qvw files.
I have below scenario.
I have 4 qvw file say a.qvw,b.qvw,c.qvw and d.qvw. Here I need set dependency.
If one of the qvw failed to reload then execution of other qvw must stop.
I have also notice if we run single qvw through batch and if it failed to reload then qv.exe is not getting close.
I need your help to resolve above 2 issue.
To run qvw through batch I am using below command
C:\Program Files\QlikView\qv.exe /r D:\Document.qvw
I have refered below thread
QlikView Desktop client command line
Let me know if any questions
Thanks and Regards,
Hi,
Thanks marcus_sommer.
Your replay also helpful for me, but I don't want to write any macro or modify existing qvw.
So I tried solution suggested by jontydkpi. and It is working fine but I need few more modification in suggested solution.
But it gives me pretty much much good start.
Thanks and Regards,
Hello Sir,
Your script working fine but If qvw failed to reload then qv application not getting close.
Is there any command which will forcefully closed qv and exit batch on if qvw failed to reload.
Kind Regards,
I'm not sure if you could call a quit- respectively kill-statement per macro-function within the script (quit shouldn't work because it needed an ActiveDocument which doesn't exists during the load) but from external vbs-batches (see attachment) triggered from an EXECUTE statement might work.
- Marcus
Hi Sir,
Using Jonathan solution I found working solution.
step 1 : in QVW i have
set ErrorMode=0; // to make sure qv will closed.
step 2 : used script provided by Jonathan
and It works for me.
In this 2 day I learn so many new things.Thank you all for your guidance.
Thanks and Regards,
Prashant
Hi Prashant,
I am trying to execute the batch with same approach but its getting autclosed.
Is there some access related stuff you have taken while executing the batch?
Regards,
KK
This command is running infinitely
I got the solution after making small adjsutemnt in my script.
Thanks @PrashantSangle @ jontydkpi. for your support.