Android Question B4XTable Exclude Column from Search

epiCode

Active Member
Licensed User
Is it possible to exclude a specific "text field" column from B4XTable Search?
 
Solution
In this code snippet you can see how to set a B4XTable column sort-able and/or searchable:
Searchable - sort-able B4XTable column:
    If tablename = "category" Then
        Dim column As B4XTableColumn = B4XTbl1.GetColumn("[name]")
        column.Searchable = False
        column.Sortable = False
    End If
The if-statement is there in case you use the B4XTable for more than one database table.
Note that the field name is between [ ].
So to answer your question: yes it is possible.
Happy coding!

PaulMeuris

Active Member
Licensed User
In this code snippet you can see how to set a B4XTable column sort-able and/or searchable:
Searchable - sort-able B4XTable column:
    If tablename = "category" Then
        Dim column As B4XTableColumn = B4XTbl1.GetColumn("[name]")
        column.Searchable = False
        column.Sortable = False
    End If
The if-statement is there in case you use the B4XTable for more than one database table.
Note that the field name is between [ ].
So to answer your question: yes it is possible.
Happy coding!
 
Upvote 0
Solution

PaulMeuris

Active Member
Licensed User
Thank you for marking my answer as your solution.
The credit should go to the author of the B4XTable library (Erel) because that is where i found the solution.
But anyway, thanks.
 
Upvote 0
Top