Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
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
alex_nerush
Partner - Creator II
Partner - Creator II

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
Author

Alexander,

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

alex_nerush
Partner - Creator II
Partner - Creator II

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;