B4J Question B4XTable with custom search

Chris Guanzon

Active Member
Licensed User
Longtime User
hello! how can I use the search using a text field and not using the default search box of B4XTable?
 

Pelky

Active Member
Licensed User
Longtime User
Thank you very much! ?
sorry to bring this up but I have tried the mbase and it failed but B4XTable1.SearchVisible = False hid the search field
Erel said you can set its text with SearchField.Text.
My question is - did you get it to work and if so how?
 
Upvote 0

Pelky

Active Member
Licensed User
Longtime User
firstly I would like to thank you so much for coming back to me so quickly. It is very much appreciated.

However I am still confused.

is the searchfield.text defined somewhere? If i try and just enter ' searchfield.text = edtCompany.text' there is an error.

I cant find a 'Type' being searchfield for a dim statement or otherwise link it to the B4XTable

I really am sorry to trouoble you with this - maybe I am just being stupid - but I am lost with that
 
Upvote 0

Pelky

Active Member
Licensed User
Longtime User
I am actually looking for something simple - complexity is not what I like - simple is for me.

I have tried various combinations of
B4XTable1.mBase.Enabled = True
' B4XTable1.mBase.Text = False
' B4XTable1.SearchField.mBase.Text = False
B4XTable1.SearchField.Text = edtCompany.Text
B4XTable1.mBase.SearchField.Text = edtCompany.Text

as I thought that maybe where i have to look but cant find the right combination.
 
Upvote 0

Magma

Expert
Licensed User
Longtime User
I am actually looking for something simple - complexity is not what I like - simple is for me.

I have tried various combinations of
B4XTable1.mBase.Enabled = True
' B4XTable1.mBase.Text = False
' B4XTable1.SearchField.mBase.Text = False
B4XTable1.SearchField.Text = edtCompany.Text
B4XTable1.mBase.SearchField.Text = edtCompany.Text

as I thought that maybe where i have to look but cant find the right combination.
are you searching... that?

b4xtable1.SearchField.TextField.Text="the string you are searching for"
 
Upvote 0
Top