Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Damien_V
Support
Support

Get a list of tasks in the properties of an extension

How do I get a list of tasks in the properties of an extension ?

 

I wrote the following code but I am getting a syntax error when running the extension :

...
return {
	definition: {
		type: "items",
		component: "accordion",
		items: {
			MyTaskID: {
				type: "string",
				component: "dropdown",
				label: "Task ID",
				ref: "taskid",
				options:
				[
				qlik.callRepository( '/qrs/task', 'GET' ).success( function ( reply ) {
						    $.each(reply,function() {'{value:"'+JSON.stringify(reply.id)+',label:"'+JSON.stringify(reply.name)+'"},'});}
			]
			}}
			},
...

 

Expected result in attachment.

Thank you.

If the issue is solved please mark the answer with Accept as Solution.
0 Replies