3589
Views
16
Comments
list filter
Question

Hi,

I want to search the name using the listfilter, but I got error, Any one suggest me

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Jeyasri,

ListFilter works on in-memory Lists, using standard OutSystems Expressions. "like" is therefore not available.

2020-01-03 05-37-58
JEYASRI R

Kilian Hekhuis wrote:

Hi Jeyasri,

ListFilter works on in-memory Lists, using standard OutSystems Expressions. "like" is therefore not available.

Thanks for reply

If any other option for instead of like 


2019-04-11 10-22-10
Domingues

JEYASRI R wrote:

Hi,

I want to search the name using the listfilter, but I got error, Any one suggest me



It seams that you are filtering a screen list on the screen, why don't you just refresh the query?
If refresh Query doesn't for some reason work for you, try to use the dinamic link component. It Works great, and allows you to query over in-memory Lists.

Best Regards,

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Jeyasri,

Didn't think of it before, but you could use the built-in Index() Function in your Expression. Index() returns -1 if not found, and a positive number otherwise.

2024-03-25 10-26-49
Miguel Marçal

Hi,

You can try using Index(ClubName, Search) <> -1

-> https://www.outsystems.com/forums/discussion/26506/listfilter-usage/


Cheers,

Miguel Marçal

2020-01-03 05-37-58
JEYASRI R

Miguel Marçal wrote:

Hi,

You can try using Index(ClubName, Search) <> -1

-> https://www.outsystems.com/forums/discussion/26506/listfilter-usage/


Cheers,

Miguel Marçal


Thanks for reply,
It not working

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Jeyasri,

What isn't working? Have you tried to find out why it's not working? (Note: it should work.)

2020-01-03 05-37-58
JEYASRI R

Hai kilian,
I am used below the logic,That filter its not worked 



2021-09-06 15-09-53
Dorine Boudry
 
MVP

Can you show the content of ClubList2 ?  Are there even items there that match your filter ??  

(I don't see an aggregate in your flow that is populating it)

2020-01-03 05-37-58
JEYASRI R

Dorine Boudry wrote:

Can you show the content of ClubList2 ?  Are there even items there that match your filter ??


2021-09-06 15-09-53
Dorine Boudry
 
MVP

Sorry Jeyasri, I mean the data in debug right before executing the ListFilter Action

2024-02-16 07-43-18
Amit Verma

JEYASRI R wrote:

Hi,

I want to search the name using the listfilter, but I got error, Any one suggest me

Hi JEYASRI,

SyntaxEditor Code Snippet

Index(ToLower(GetEmployees2.List.Current.Employee.Name),ToLower(SearchKeyword)) <> -1

Please refer below link

https://vermaamit52.outsystemscloud.com/ExcelPackageDemo/WebScreen1.aspx?_ts=636905170080126511

Thanks,

AV


2024-03-25 10-26-49
Miguel Marçal

Hi again,

Maybe you aren't getting any values because of the different characters case. Try this: Index(ClubList2.List.Current.Club.ClubName, Search, ignoreCase:True) <> -1.

If that doesn't work maybe you are doing it wrong. If you could provide us with the oml maybe we can help you more.


Best regards,

Miguel Marçal



2026-03-20 01-28-51
Saugat Biswas

Hi Jeyasi,


The filter condition should be

Index(ClubName, Search, ignoreCase:True) <> -1


Regards,

Saugat

2023-05-30 19-50-24
Fernando Ferreira

Hello Jeyasri, from what I see you need to use the ignore case:

Index( "First string", "f", ignorecase: True) = 0

So the filter will recognize what you need regardless of the uppercase or lowercase letter.

UserImage.jpg
Rahil Sayed

Hii JEYASRI, You can try this filter 

Index(ToBeSearchedFrom, SearchKeyword ,startIndex:,searchFromEnd:False,ignoreCase:True) <> -1

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.