DropDown items Issue

Hello all,

I am trying to add items to my dropdown list from the data table, as it is shown below:

self.drop_down_recipes.items=[(‘Please select’, None)]+[(r[‘RecipeName’], r) for r in app_tables.recipes.search()]

Up until now it was working fine, but in last hour when I try to run it, it shows me the message below:

TypeError: Dropdown item tuples must be of the form (‘label’, value)

Any guesses of what might cause the problem?\

Thanks a lot.

is one of your RecipeNames now None?

print(len(app_tables.recipes.search(RecipeName=None)))

If that is the case we should improve the error message here

3 Likes

Thanks a lot, that was the issue