ListIndexOf Only Searches the Current Record of a List

I've written a responsive web app.  I have a list in my screen and I want to find the position of a specific record in the list.  I am using the ListIndexOf action.  I specify the list, but when specifying the condition, I want to say 

GetDaysBySamplePlanId.List.SamplePlanDay.DayNumber = DayNumberToDelete

BUT, OutSystems won't let me.  It is making put "Current" in the specification and if DayNumberToDelete is not in the current record, then it returns -1 and doesn't look through the whole list.

What am I doing wrong?  I would think ListIndexOf should be searching the whole list and not just the current record.

Thanks!

Hi Sylvia,

Have you selected the right attribute in the condition?

Thanks,
Tiago

Solution

Tiago Santos wrote:

Hi Sylvia,

Have you selected the right attribute in the condition?

Thanks,
Tiago

Ugh.  So simple.  I knew I was overlooking something.  Thanks, Tiago!


Solution