Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Since QV 11 no longer aupports "http EDX" im looking for an example in VBScript to start an EDX trigger with the QVS API.
I can only find examples in C#, but i need to write it in vbScript.
Henrik
Hi yoavgeva,
Yes, I do the same way as you.
And from QlikTech's feedback, this is the only way to handle EDX trigger in QV 11.
By the way, the task name shoud be the qvw name instead of the reload task name.
We are using this too:
sub QmsEdxCmd
dim strTaskName
dim strTaskPassword
dim strServer
dim strCommand
strTaskName= ActiveDocument.Variables("vTask").GetContent.String
strTaskPassword= ActiveDocument.Variables("vPassword").GetContent.String
strServer = "http://qvpublish:4799/QMS/Service"
strCommand = "\\qvdev\QMSEDX\qmsedx.exe -task="&strTaskName&" -qms="&strServer&" -password="&strTaskPassword
Set WshShell = CreateObject("WScript.Shell")
Return = WshShell.Run (strCommand,0,false)
end sub
and it works with the IEPlugin, However it does not work with the AJAX interface. Any ideas? Thx.
Hi hugmarcel,
I tried to use your vbscript code with AJAX and it didn't work as you said. But then I changed the shared folder path with the server's local folder path:
strCommand = "\\qvdev\QMSEDX\qmsedx.exe....
to
strCommand = "c:\QMSEDX\qmsedx.exe....
and now it is working! Tested in Chrome, IE (ajax mode), and also iPad's Safari!!
Hope this helps you
Regards
Fernando
Hi hugmarcel,
Seems like we need to put the exe file into the shared folder in order for the script to run on the client side. What if my production server is in DMZ zone? I can't just shared the folder to the public.
Thanks and Regards,
YSL