1774
Views
11
Comments
Solved
ListFilter to filter the local list
Question

Hi, All

I want to Use the ListFilter and checkbox to Filter the Local list (dummydata) to display. what should I do.

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

Hi Yu,

What exactly about ListFilter you don't understand? As the documentation shows, it has two parameters: SourceList, which is the List you want to filter (in your case that would be the local variable), and Condition, which is the condition to filter by. The Condition can use both Variables etc. that are outside the List (e.g. the Variable bound to the Check Box Widget), and those that are inside (i.e. everything that normally comes after the ListVariable.Current). If you open the Expression Editor, Service Studio helpfully shows you which these are, like this:

UserImage.jpg
yu zhang

Kilian Hekhuis wrote:

Hi Yu,

What exactly about ListFilter you don't understand? As the documentation shows, it has two parameters: SourceList, which is the List you want to filter (in your case that would be the local variable), and Condition, which is the condition to filter by. The Condition can use both Variables etc. that are outside the List (e.g. the Variable bound to the Check Box Widget), and those that are inside (i.e. everything that normally comes after the ListVariable.Current). If you open the Expression Editor, Service Studio helpfully shows you which these are, like this:

Hi 

  Thanks for reply my question. And I want know Is the ListFilter use for two or three conditions?


UserImage.jpg
yu zhang

The checkbox condition like aa = "s" and DiffA =true

2018-07-03 08-33-54
Tiago Gafeira
Champion

Can you share the entity/structure definition of the source list?

UserImage.jpg
yu zhang

Tiago Gafeira wrote:

Can you share the entity/structure definition of the source list?

Hello ,

This is the entity look like 


UserImage.jpg
yu zhang

Tiago Gafeira wrote:

Can you share the entity/structure definition of the source list?

And the local list is the entity list.

2018-07-03 08-33-54
Tiago Gafeira
Champion

If it is an entity, do you really want to use ListFilter? Shouldn't you be filtering the data retrieved from the DB?

Please check Implement a Search Filter - OutSystems Platform Training as a guide.

UserImage.jpg
yu zhang

Tiago Gafeira wrote:

If it is an entity, do you really want to use ListFilter? Shouldn't you be filtering the data retrieved from the DB?

Please check Implement a Search Filter - OutSystems Platform Training as a guide.

Hi, Tiago Gafeira

   I don't Use the entity. I want to filter the local Vailiable. The data type is Entity List.

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

Hi Yu,

What exactly about ListFilter you don't understand? As the documentation shows, it has two parameters: SourceList, which is the List you want to filter (in your case that would be the local variable), and Condition, which is the condition to filter by. The Condition can use both Variables etc. that are outside the List (e.g. the Variable bound to the Check Box Widget), and those that are inside (i.e. everything that normally comes after the ListVariable.Current). If you open the Expression Editor, Service Studio helpfully shows you which these are, like this:

UserImage.jpg
yu zhang

Kilian Hekhuis wrote:

Hi Yu,

What exactly about ListFilter you don't understand? As the documentation shows, it has two parameters: SourceList, which is the List you want to filter (in your case that would be the local variable), and Condition, which is the condition to filter by. The Condition can use both Variables etc. that are outside the List (e.g. the Variable bound to the Check Box Widget), and those that are inside (i.e. everything that normally comes after the ListVariable.Current). If you open the Expression Editor, Service Studio helpfully shows you which these are, like this:

Hi 

  Thanks for reply my question. And I want know Is the ListFilter use for two or three conditions?


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

You can use any condition you like, including using "and" and "or", just like you would in an If Statement.

UserImage.jpg
yu zhang

Kilian Hekhuis wrote:

You can use any condition you like, including using "and" and "or", just like you would in an If Statement.

Thanks for Helping me~~


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

You're welcome. You got your problem solved now? If so, please mark my answer as "Solution". Thanks!

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