Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
We've created a QMC Task in System->Supporting Tasks->QDS@**->External Program
and have given path of the .bat file, which contains following command
"C:\Program Files\QlikView\Qv.exe" /l "E:\path_to_my_qlikview_document.qvw"
exit
my_qlikview_document has a macro written inside, which is triggered post-reload in document settings
Running .bat file manually executes the commands written inside successfully.
Running the created Supporting Task doesn't do the same.
Can anybody help figuring out the reasons behind this behaviour?
PFB
Thanks
Try using /R instead of /I
Take a look at this post by Tim Benoit.
I've tried using the /r switch in the batch file but this doesn't seem to have made any difference.
Also, I do need the application to not be auto-saved and closed by the /r switch after reload because I need to run a macro triggered post-reload, hence the /l switch.
Also, the macro doesn't work after using the/r switch in the batch file
Does your macro save and close the qvw after it completes?
Yes, macro contains below two lines
ActiveDocument.Save
ActiveDocument.GetApplication.Quit
Can you please provide steps to test this?
I had tested the batch file just by double-clicking.
How do I find the serviceID which runs the QDS?
Any idea how 'serviceID which runs the QDS' can be known?