B4J Question B4XSearchTemplate with more than one column

Elric

Well-Known Member
Licensed User
Hello guys!

There is a way to get a B4XSearchTemplate with more than one column or the only solution is a custom dialog layout with... what?

Thanks!
 
Solution
B4XSearchTemplate with more than one column

I can think of two ways:
1. Use xClv with items composed of 4 labels if you have say 4 columns. You can use a B4XFloatEditText for the search. The data from the text file can be imported from the text file to a SQLite database table where you can perform searches using the query syntax and the B4XFloatTextFIeld text input. Sub B4XFloatTextField_TextChanged (Old As String, New As String). You can spread the search across all or some of the column using the SQLite query with the LIKE operator.
2. Use a B4XTable which has a nice built in search feature where you can search in multi column data, unless you are not thrilled about the fact that it is page scrollable instead of...

Mahares

Expert
Licensed User
Longtime User
B4XSearchTemplate with more than one column

I can think of two ways:
1. Use xClv with items composed of 4 labels if you have say 4 columns. You can use a B4XFloatEditText for the search. The data from the text file can be imported from the text file to a SQLite database table where you can perform searches using the query syntax and the B4XFloatTextFIeld text input. Sub B4XFloatTextField_TextChanged (Old As String, New As String). You can spread the search across all or some of the column using the SQLite query with the LIKE operator.
2. Use a B4XTable which has a nice built in search feature where you can search in multi column data, unless you are not thrilled about the fact that it is page scrollable instead of vertically scrollable.
 
Upvote 1
Solution
Top