Get index for selected item with Druid

Hello,

I’m using Druid’s data list. I have a table with 5 items. I want to know the index of the item I just pressed on the list.

I’m trying to get it with:
data_list:get_index(self,data)

But it returns nil. Why is so? Or, how I can get a 3 if I press the third item on the list for example.

Thanks :slight_smile: