epiCode Active Member Licensed User Nov 12, 2021 #1 I am using b4xtable to search across multiple columns: I wish to narrow down search results by allowing to search within the results. 1. Is it possible with B4XTable? 2. If not, how else can it be done? It would be nice if anyone can share how they achieved it. Thanks! PS: This is not the case of simple SQL AND / OR or using % with LIKE. because the two terms may not be in the same column/row
I am using b4xtable to search across multiple columns: I wish to narrow down search results by allowing to search within the results. 1. Is it possible with B4XTable? 2. If not, how else can it be done? It would be nice if anyone can share how they achieved it. Thanks! PS: This is not the case of simple SQL AND / OR or using % with LIKE. because the two terms may not be in the same column/row
Erel B4X founder Staff member Licensed User Longtime User Nov 12, 2021 #2 B4XTable search is based on SQL LIKE feature. It simply ORs all searchable columns. You can implement the first search using CreateDataView: B4X: B4XTable1.CreateDataView($"${NameColumn.SQLID} LIKE '%F%' OR ${StateColumn.SQLID} LIKE '%F%'"$) Upvote 1
B4XTable search is based on SQL LIKE feature. It simply ORs all searchable columns. You can implement the first search using CreateDataView: B4X: B4XTable1.CreateDataView($"${NameColumn.SQLID} LIKE '%F%' OR ${StateColumn.SQLID} LIKE '%F%'"$)
epiCode Active Member Licensed User Nov 12, 2021 #3 Erel said: B4XTable search is based on SQL LIKE feature. It simply ORs all searchable columns. You can implement the first search using CreateDataView: B4X: B4XTable1.CreateDataView($"${NameColumn.SQLID} LIKE '%F%' OR ${StateColumn.SQLID} LIKE '%F%'"$) Click to expand... This is exactly what I was looking for. Thanks Erel ! Upvote 0
Erel said: B4XTable search is based on SQL LIKE feature. It simply ORs all searchable columns. You can implement the first search using CreateDataView: B4X: B4XTable1.CreateDataView($"${NameColumn.SQLID} LIKE '%F%' OR ${StateColumn.SQLID} LIKE '%F%'"$) Click to expand... This is exactly what I was looking for. Thanks Erel !