As our qlikview documents are really big, we don't want that our customers have to wait a lot of time the first time a document is reached. So, and after noticing that the preloaded option in the QEMC doesn't work as we expected we developed a little VBS script to make a fake request to cause a load of the document by the server.
The code is more or less as follows:
' Create Http object SET gHttp = CreateObject("Microsoft.XMLHTTP")
It works really well, document is loaded into qv server memory and then the first user to access has not to wait any longer. This code works from command line and as a window scheduled task, but not from supporting task in QEMC. We would like to know why, as we want to do that after the reloading process of the documents.
Logs from publisher doesn't show anything but all ok.
Our Command Line Statement is just: C:\WINDOWS\system32\wscript.exe E:\loader.vbs
Any ideas or clues?
As information: Qlikview Enterprise 10 SR3 x64 on a Windows Server 2008 R2 x64.
Hi Arnold, the source code I posted some time ago was meant to be executed outside the qlikview environment, as an independent VBS script. What you are trying to do is to create a MSXML2.ServerXMLHTTP object inside the script module of a qlikview document, right? Then what I could say is that not all the objects are available inside the script module and... why are you doing that? What is you purpose?