D deyvitm Member Licensed User Longtime User Mar 23, 2016 #1 As I can do this in BA4, filter a list ?? List<"NameObjec"> newList = List.FindAll(s => s.Campo1 == "valo1" && s.Campo2 == "valor2"); Thx
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 Mar 23, 2016 #2 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
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.
D deyvitm Member Licensed User Longtime User Mar 23, 2016 #3 DonManfred said: 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. Click to expand... And there will be an example of good practice for this type of search ?, to be an optimal search, please?? Upvote 0
DonManfred said: 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. Click to expand... And there will be an example of good practice for this type of search ?, to be an optimal search, please??
DonManfred Expert Licensed User Longtime User Mar 23, 2016 #4 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? Upvote 0
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?
D deyvitm Member Licensed User Longtime User Mar 23, 2016 #5 DonManfred said: 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? Click to expand... 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
DonManfred said: 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? Click to expand... 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
Peter Simpson Expert Licensed User Longtime User Mar 23, 2016 #6 Something like this @deyvitm https://www.b4x.com/android/forum/threads/class-searchview.48576/#content. Changing the example in the link to work from a JSON feed should be easy enough using the information provided on this great community... Upvote 0
Something like this @deyvitm https://www.b4x.com/android/forum/threads/class-searchview.48576/#content. Changing the example in the link to work from a JSON feed should be easy enough using the information provided on this great community...