Qlik Community

QlikView Extensions

Discussion Board for collaboration on QlikView Extensions.

Not applicable

How to create EDX task in QV11

I have been working on the EDX tasks for a while. Running EDX jobs for already created task is quite simple. However, I am trying to create the EDX task automatically when the document name and task name are given as parameters to the script but without any luck so far.
Has someone worked on similar requirement? Any help or suggestions as to how this can be achieved would be highly appreciated.

3 Replies
Partner
Partner

How to create EDX task in QV11

I think, you should use QMS API. I have done similar job using C#.NET and QMS API. The QlikVIew Management Service API documentation you will find here: http://community.qlik.com/docs/DOC-2639

Not applicable

How to create EDX task in QV11

Alexander,

Could you share an example as how you created a new task through QMS API?

Highlighted
Partner
Partner

How to create EDX task in QV11

Sorry for late reply... Here you are couple lines of code. Maybe this will be helpful for you...

DocumentTask.TaskReload tr = new DocumentTask.TaskReload();

tr.Mode = mode;

DocumentTask dtask = new DocumentTask();

dtask.Document = doc;

dtask.ID = taskId;

dtask.Scope = DocumentTaskScope.Reload;

dtask.Reload = tr;

dtask.QDSID = qdsID;

client.SaveDocumentTask(dtask);

To run task:

client.RunTask(taskId);

where is client is instance of QMSClient class. The client variable should be declared like following:

private IQMS client;