Android Question Filter a list

deyvitm

Member
Licensed User
Longtime User
As I can do this in BA4, filter a list ??

List<"NameObjec"> newList = List.FindAll(s => s.Campo1 == "valo1" && s.Campo2 == "valor2");

Thx
 

DonManfred

Expert
Licensed User
Longtime User
No.

You need to create a sub which do the search for you and then return a new list with the results of the filtering.
 
Upvote 0

deyvitm

Member
Licensed User
Longtime User
Maybe it is better to do the search when reading the values fro a database.

The routine will be fast if it is just a few (hundrets) of items in the list.

Where does the content from the list come from? A Database?

My data comes from json webservice response, then I keep them in a list, which must filter combobox to fill in the entire application and unfortunately the webservice brings all the data in general
 
Upvote 0
Top