Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, I wish to open and reload a qv document via cmd.
However the application must not promt for user interaction in case of failure.
How can I supress the dialog box.
Regards
Maybe by adding this simple statement to the beginning of your load script?
SET ErrorMode = 2;
See also here: ErrorMode - QlikView
I am talking no document.
...\QV.exe /r IdoNotExist.qvw
That means there is no loadscript
I'm not following. You're trying to reload a document that doesn't exist?
Yes, for whatever reason there might be.
But I want do do it automated, without having to acknowledge via mouse click
Sorry, no idea.
Usually I'm very happy that QV Desktop does the sensible thing and complains about being asked to do something which it can't. Not sure if & how you can disable that behavior.
Thank you for your time
Hi,
Can you explain little bit about your requirement??
Regards,
The reload is executed using via another users task, which means automated.
And because the task is executed by another user (hidden) there is no feedback as the dialog box is neither propagated nor acknowledged via cmd)
Hence my question:
How can I supress the dialog and get another form of error when typing
...\QV.exe /r IdoNotExist.qvw
It's not really clear for me what you are trying to do and which aim it had.
Within a load you could use the feature of ERRORMODE like Peter hinted to ignore failures and/or if any is detected to exit the script or to do other things maybe even to kill the process.
Cases in which the qvw didn't exists could you catch with some logic in beforehand of executing this batch or probably within the same batch. An alternatively might be also to use vbs instead of the cmd-line because it's more flexible and quite heavier in the functionalities.
- Marcus