2331
Views
3
Comments
Solved
ListIndexOf Only Searches the Current Record of a List
Question

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!

UserImage.jpg
sylvia Able
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!


UserImage.jpg
Tiago Santos

Hi Sylvia,

Have you selected the right attribute in the condition?

Thanks,
Tiago

UserImage.jpg
sylvia Able
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!


2025-11-19 06-14-01
Miguel Verdasca
Champion
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.