Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

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
MVP & Luminary
MVP & Luminary

Trigger a task from command line

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

6 Replies
MVP & Luminary
MVP & Luminary

Trigger a task from command line

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

Trigger a task from command line

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)

MVP & Luminary
MVP & Luminary

Trigger a task from command line

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

-Rob

jason_michaelid
Honored Contributor II

Trigger a task from command line

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

MVP & Luminary
MVP & Luminary

Trigger a task from command line

Jason,

Thanks for the encouraging words.

-Rob

Not applicable

Trigger a task from command line

Thanks Rob , your code helped resolve the issue of EDX