2 Replies Latest reply: Apr 25, 2013 7:41 AM by Ravichandran Karuppannan RSS

    Run task from an external event with passing parameters

      Need a bit of help if anyone has done this before as I am sure it's achivable.


      I am using QlikView 10 server/client version on my project with publisher/pdf enabled.

      I have a requirement to trigger a task which was set up in QEMC by an external event.

      I have noticed that there is an option when you set up a task called Start the task "On an external event".


      Actually this task has loop and reduce on a signle field and generate pdf report for each value in that loop
      and reduce field and distribute this to a shared folder. This works great if I schedule this task, then it
      generates PDF file for each value and saves to the shared folder.


      I have a couple of requirements now on this task.

      a) Instead of scheduling it, it should trigger on demand when user clicks a button on the QVW file from IE Browser.

      b) Secondly, user will pass a single value to this "Loop and Reduce" field set up on the task so that instead of running for
      all values in that field, it should generate a PDF file only for what user has passed a value to this task.
      So is there any way I can pass parameter to this task to say run this task only one value instead of all possible values from that
      LOop and Reduce field.

      c) Finally, this is optional, is there anyway instead of saving this file to a folder, can we email to the user who clicked a button on demand to
      generate this PDF file.

      I think points a) and b) are must have requirements.

      Is anyone out there who has done this before please could you share the information as how to do this?