Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Trigger a task from command line

I have rewritten a bat file program which calls a vbscript program. It checks for certain conditions and then runs reload of a qvw using below code

set WshShell = CreateObject("WScript.Shell")

                              WshShell.Run("cmd.exe /c c:\Progra~1\QlikView\QV.exe /r " & c:\qvjob.qvw)

Is there a way to run already set task instead reloading the document?

The reason for needing to run the task is

i) This program would trigger the first task and a whole series of tasks would be triggerred one after other.

ii) It gives a visual way in QEMC as to which task is running.

Appreciate any hint or input to achieve this.

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You can trigger a task using a couple of http posts as documented in section 27.5 "Triggering EDX Enabled Tasks" of the Qlikview Server Reference guide. You can download a VBS sample "RequestEDX" from http://robwunderlich.com/downloads/

-Rob

http://robwunderlich

View solution in original post

8 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You can trigger a task using a couple of http posts as documented in section 27.5 "Triggering EDX Enabled Tasks" of the Qlikview Server Reference guide. You can download a VBS sample "RequestEDX" from http://robwunderlich.com/downloads/

-Rob

http://robwunderlich

Not applicable
Author

Thanks for the response.

Actually I am looking for single line command line to replace this in my program.

this below command work great to just reload a qvw document , but I am looking similar one to trigger a task already set in QEMC

set WshShell = CreateObject("WScript.Shell")

                              WshShell.Run("cmd.exe /c c:\Progra~1\QlikView\QV.exe /r " & c:\qvjob.qvw)

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Did you download the RequestEDX and look at the doc? It is a single command line.

-Rob

Jason_Michaelides
Luminary Alumni
Luminary Alumni

Honestly Rob - your downloads are the best!  I've been an avid cookbook fan for nearly 2 years and now this RequestEDX is going to be so useful!

Thank you,

Jason

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Jason,

Thanks for the encouraging words.

-Rob

Not applicable
Author

Thanks Rob , your code helped resolve the issue of EDX

KishoreSuri
Creator
Creator

Hi Rob,

We have an issue to execute Qlikview reports through ETL (SSIS) after modifying the HTTP to HTTPS. 

We are unable to update data with ETL with HTTPS ,getting issues. So, we want to run through any type of Command line.

So,please guide me how and where to download RequestEDX.

Thanks,

Kishore

Thanks,
Kishore S
KishoreSuri
Creator
Creator

Hi,

Please share the same code to us , we also facing some issue with EDX. Will try with the code to fix issue.

Thanks,

Kishore

 

 

Thanks,
Kishore S