Submit your innovative use case or inspiring success story to the 2023 Dataiku Frontrunner Awards! LET'S GO

getChoicesFromPython not populating SELECT dropdown Plugin

Solved!
nmadhu20
getChoicesFromPython not populating SELECT dropdown Plugin

Hi Team,

I have a reuirement of using python to dynamically populate a dropdown in plugin. I have followed th steps mentioned in documentation and also in the Dataiku Community question.

However, after saving when I am clicking on the dropdown, nothing appears.

I am guessing something is wrong with the placement of resource folder here.

 

 image.png

recipe json looks like this:

image.png

 

and the do() function looks like this:

image.png

 

Any lead is appreciated. Thankyou in advance!

0 Kudos
1 Solution
AgatheG
Dataiker

Hi nmadhu20, 

 

Your guess was right, the resource folder is mislocated. It should be at the root of your plugin repo - so at the same level as the plugin.json file (see documentation: https://doc.dataiku.com/dss/latest/plugins/reference/other.html#resource-files). 

 

Hope this helps! 

 

Agathe

View solution in original post

1 Reply
AgatheG
Dataiker

Hi nmadhu20, 

 

Your guess was right, the resource folder is mislocated. It should be at the root of your plugin repo - so at the same level as the plugin.json file (see documentation: https://doc.dataiku.com/dss/latest/plugins/reference/other.html#resource-files). 

 

Hope this helps! 

 

Agathe